Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change makeTensorFromDataId to makeTensorFromTensorInfo #6355

Merged
merged 2 commits into from
Apr 29, 2022

Conversation

qjia7
Copy link
Contributor

@qjia7 qjia7 commented Apr 29, 2022

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


This change is Reviewable

@qjia7 qjia7 force-pushed the makeTensorFromTensorInfo branch from 4d6f8e1 to caaba2d Compare April 29, 2022 03:46
@qjia7 qjia7 changed the title Change makeTensorFromTensorId to makeTensorFromTensorInfo Change makeTensorFromDataId to makeTensorFromTensorInfo Apr 29, 2022
@qjia7
Copy link
Contributor Author

qjia7 commented Apr 29, 2022

It seems that makeTensorFromTensorInfo is more straightforward since all places are getting the argument list from a TensorInfo object. And it also makes shape and dtype consistent between Tensor and TensorInfo. Otherwise, it may make mistake that use a shape in TensorInfo and use another shape in old makeTensorFromDataId.

@pyu10055 @lina128 Please take a look if the PR is necessary. Thanks.

@qjia7 qjia7 requested review from lina128 and pyu10055 April 29, 2022 04:15
Copy link
Collaborator

@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.

Thanks I really like this refactoring!

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @lina128)

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 refactor!

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

@lina128 lina128 merged commit 55edb1a into tensorflow:master Apr 29, 2022
mattsoulanille added a commit that referenced this pull request May 3, 2022
* [node] Use makeTensorFromTensorInfo instead of makeTensorFromId
See #6355

* [node] Disable upperBound and lowerBound tests

Co-authored-by: Na Li <linazhao@google.com>
@qjia7 qjia7 deleted the makeTensorFromTensorInfo branch May 6, 2022 03:27
mattsoulanille added a commit that referenced this pull request May 20, 2022
makeTensorFromDataId was removed by #6355 but it should have been deprecated instead. This PR adds it back as a deprecated function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants