why in some example you call ts.dispose? #414
Answered
by
vladmandic
shurshilov
asked this question in
Q&A
-
why in some example do you use :
|
Beta Was this translation helpful? Give feedback.
Answered by
vladmandic
Jan 29, 2024
Replies: 1 comment 2 replies
-
if you're only dealing with images, human will create and dispose tensors automatically. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
shurshilov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if you're only dealing with images, human will create and dispose tensors automatically.
but if you create tensor manually and use that, you need to also dispose it manually or you'll have a memory leak.
tensors are not subject to javascript automatic scope monitoring and garbage collection.