I found the problem happens when tf.signal.rfft receives a Variable type or Tensor created by tf.random. But it disappear when it receives inputs of const Tensor and numpy tensor.
I uninstall the tensorflow 1.15.5 version and reinstall the 1.15.4 version, and the problem disappers.
System information
Describe the current behavior When calling tf.signal.rfft iteratively in a loop, the memory and time cost unexpectedly increase gradually.
Describe the expected behavior The memory usage should keep constant and the time cost should keep stable.
Code to reproduce the issue
Other info / logs
The output of the above code: