Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

When disposing a kept tensor, remove it from the keep tensors array. #1113

Merged
merged 3 commits into from
Jun 19, 2018

Conversation

nsthorat
Copy link
Contributor

@nsthorat nsthorat commented Jun 19, 2018

By not removing it from the keepTensors array, we introduce a CPU memory leak which causes a very gradual linear slowdown.

Verified this fixes tensorflow/tfjs#448


This change is Reviewable

@nsthorat nsthorat requested a review from caisq June 19, 2018 18:47
@caisq
Copy link
Collaborator

caisq commented Jun 19, 2018

Thanks for the quick fix!


Review status: 0 of 1 LGTMs obtained


Comments from Reviewable

@caisq
Copy link
Collaborator

caisq commented Jun 19, 2018

:lgtm_strong:


Review status: :shipit: complete! 1 of 1 LGTMs obtained


Comments from Reviewable

@caisq
Copy link
Collaborator

caisq commented Jun 19, 2018

It is my guess that this will also fix tensorflow/tfjs#438

@nsthorat nsthorat merged commit b83c867 into master Jun 19, 2018
@nsthorat nsthorat deleted the keep branch June 19, 2018 19:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fit gets slower and slower after each call
2 participants