-
Notifications
You must be signed in to change notification settings - Fork 553
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
bad memory leak #435
Comments
It's a bit confusing the way this is constructed, but I see you're doing a lot of good things. The thing I'm confused by, is why are you Do you have an open source GitHub repo you can link me to, so I can pull down the code and run it and see if I can fix it? |
@GantMan It's actually a worker that exposes the "scan" function, the loop part is just to show how I'm supplying the urls. I used tf.disposeVariables() in an interval just to see the effect it would have on memory and also the results of
As for
I do admit, the two might be the cause of the error I had mentioned above The code shown above is enough to actually reproduce this behavior on node |
Hrmmm, TBH, I'm not seeing the source. Perhaps the model is getting created over and over? You could try If you have a small, open source, ready to run demo I'll pull it down and throw an hour at it. If I were you, I'd comment out line by line and watch tensor memory with a log. |
Was this resolved? |
Can I see some code? Are you using ts-node? |
i am having this issue, any solution ? |
Hello, I'm having a bad memory leak in production after implementing nsfwjs. I'm talking gigs of memory.
I sometimes get
TypeError: Cannot read property 'backend' of undefined
; (@tensorflow/tfjs-core/dist/tf-core.node.js:3280:31)Either way, the memory is never free'd.
What am i doing wrong?
The text was updated successfully, but these errors were encountered: