-
Notifications
You must be signed in to change notification settings - Fork 214
Bug in String deallocation #357
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
Comments
See PR #358 |
Thanks for the PR @brychcy , we'll take a look at it. Can you also please retry with 0.3.2, which was released a few weeks ago? We have fixed a memory leak related to loading/unloading saved models, that might prevent other issues as well |
Happens also with 0.3.2. |
This has been fixed on the master and in 0.3.3 so this bug can be closed |
When trying to upgrade to 0.3.1 we got junit failures in a class with multiple
tests that load and use saved models with string inputs and outputs.
Tensorflow was for some tests throwing an exception with a message that definitely was wrong.
When the tests were run individually, no error occured.
When the tests were reordered, different tests were failing.
So this smells likely a memory corruption, and I've looked at the changes in 0.3.1 (w.r.t. 0.3.0),
namely #253.
I think I've understood the issue: The problem appears if the underlying TensorBuffers are shared, in which case
the strings should not be deallocated.
I'll send a PR which uses TF_TensorMaybeMove (which in its current implementation returns null if then TensorBuffer is shared, and the tensor itself, if it is not) to detect and avoid the situation (the PR fixes the problem for us)
The text was updated successfully, but these errors were encountered: