Skip to content

Conversation

@pyu10055
Copy link
Collaborator

@pyu10055 pyu10055 commented Aug 24, 2020

Fixed #3823

The error is triggered by pushing weight tensor into TensorArray, we disposed the weight at the end of the execution.
This fix make sure, when we clean up execution context, the tensorArrays and tensorLists will not dispose weights/inputs/outputs.

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

@pyu10055 pyu10055 requested a review from lina128 August 24, 2020 17:24
Copy link
Collaborator

@lina128 lina128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix, Ping. Just curious, which code push weight tensor into TensorArray?

Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @lina128)

Copy link
Collaborator Author

@pyu10055 pyu10055 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is just part of the model setup somehow, the model failed on the second inference due disposal of the weight tensor.

Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@pyu10055 pyu10055 merged commit e66027a into master Aug 24, 2020
@pyu10055 pyu10055 deleted the tensor_array_fix branch August 24, 2020 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

error 'backend' undefined on a single model with tfjs@2.3.0

3 participants