-
Notifications
You must be signed in to change notification settings - Fork 63
Sarkars/backend create tensor #370
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
Conversation
kanvi-nervana
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A minor comment other looks good
| std::shared_ptr<ngraph::runtime::Executable> exec, | ||
| std::vector<tensorflow::PersistentTensor>& tf_output_tensors) { | ||
| auto itr = m_out_persistents.find(exec); | ||
| if (itr == m_out_persistents.end()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use PersistentOutputsExist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then I'd be doing 2 searches. One in PersistentOutputsExist and one in again to actually return the item. Right now I do only one search to find the appropriate iterator
| std::shared_ptr<ngraph::runtime::Executable> exec, | ||
| std::vector<tensorflow::PersistentTensor> persistent_tensors) { | ||
| auto itr = m_out_persistents.find(exec); | ||
| if (itr != m_out_persistents.end()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use PersistentOutputsExist
shresthamalik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Please look into the failing pipelines |
vishakha-nervana
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
For certain backends (even if their executable can create tensors), use backends to create tensors