We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In a production server we had a major space leak that I tracked down to our usage of tensorflow. Heavily simplified our code looked like:
tensorflow
runSession $ do addGraphDef g forever $ do ... output <- runWithFeeds [ feed inTens ... ] outTens ...
After changing the code to the following the space leak went away:
runSession $ do addGraphDef g ns <- build $ getNodes outTens fetch <- build $ getFetch outTens forever $ do ... output <- runFetchWithFeeds [ feed inTens ... ] ns fetch ...
Note that for this to build I did have to patch tensorflow to export runFetchWithFeeds.
runFetchWithFeeds
So clearly build $ getNodes t and / or build $ getFetch t is leaking. Any idea why?
build $ getNodes t
build $ getFetch t
The text was updated successfully, but these errors were encountered:
@basvandijk if you happen to have a smallish test case I'll happily start with it rather than writing my own. If not - no sweat.
Sorry, something went wrong.
No branches or pull requests
In a production server we had a major space leak that I tracked down to our usage of
tensorflow
. Heavily simplified our code looked like:After changing the code to the following the space leak went away:
Note that for this to build I did have to patch
tensorflow
to exportrunFetchWithFeeds
.So clearly
build $ getNodes t
and / orbuild $ getFetch t
is leaking. Any idea why?The text was updated successfully, but these errors were encountered: