Currently I have a working Tensorflow network that I use for Reinforcement Learning. However, I seem to have a memory leak in the Tensorflow part, probably because I did not close everything that is required. Because it is a RL script, I have to call the fit method of my code (see below) several times. This seems to cause a Memory Leak. Anyone an idea for what I am doing wrong?
Thanks in advance!
And the network construction: