-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Get ROI tensor data offset #33124
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
base: master
Are you sure you want to change the base?
Get ROI tensor data offset #33124
Conversation
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
1c1bf77 to
21c440e
Compare
| return ov::SoPtr<ov::ITensor>(tensor_impl, so); | ||
| } | ||
|
|
||
| size_t get_tensor_data_offset(const ov::SoPtr<ov::ITensor>& tensor) { |
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.
I'd suggest to take ov::Tensor as a parameter instead of ov::SoPtr<ov::ITensor>. And to move calling of ov::get_tensor_impl(tensor) into get_tensor_data_offset function
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.
We need it in the plugin as ov::ITensor. That means I need 2 extra calls to create an ov::Tensor from ov::ITensor and to get ov::ITensor from ov::Tensor again. To be honest, it doesn't make sense to me.
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
21c440e to
9230e83
Compare
Details:
Tickets: