Skip to content

why in some example you call ts.dispose? #414

Answered by vladmandic
shurshilov asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@shurshilov
Comment options

@vladmandic
Comment options

Answer selected by shurshilov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants