Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session runs leak memory #86

Merged
merged 1 commit into from
Jun 4, 2017
Merged

Session runs leak memory #86

merged 1 commit into from
Jun 4, 2017

Conversation

danieldk
Copy link
Contributor

@danieldk danieldk commented Jun 4, 2017

Memory leaks during repeated session runs. I noticed that the run method creates wrapping tensors of the input. However, the caller retains ownership of TF_Tensors passed to TF_Run since Tensorflow 0.12.0:

https://github.com/tensorflow/tensorflow/blob/master/RELEASE.md#breaking-changes-to-the-api-2

Passing the input tensor vector from the step resolves this leak.

@adamcrume
Copy link
Contributor

Great catch! We'd like to set up an automated valgrind test to catch this stuff (#69), but it's a bit difficult.

@adamcrume adamcrume merged commit 8f75825 into tensorflow:master Jun 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants