Skip to content

Possible memory leak in executeAsync. #1186

@annxingyuan

Description

@annxingyuan

I'm using the latest tfjs (0.14.1) and calling executeAsync on the converted universal sentence encoder lite model. When I log tf.memory().numTensors before and after executeAsync, I see that 11 new tensors are created. We can't wrap executeAsync in a tidy because it's asynchronous. Would you mind looking into the possibility that there is a memory leak in executeAsync?

I created a codepen that demonstrates the issue: https://codepen.io/annxingyuan/pen/LqyGzM

Thanks!

Metadata

Metadata

Assignees

Labels

P1type:bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions