-
Notifications
You must be signed in to change notification settings - Fork 56
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
Use new API calls for OpenVino #1084
Conversation
I think the reason to yank is the The cost of copying is also discussed in the change of API (second link in my issue). IMHO a slightly less performant (copy is with memcpy, and aligned memory) library is better than a library that might segfault. Based on their discussions, they'll push a fix at a later time, but we don't know when will that happen. Additionally, we can change the cycler's architecture to keep the tensor as part of the state and load the input image directly into it instead of the scratchpad. |
No, not possible since the Tensor does not impl Send :( |
Ouch! 😬 That's bad 😞. Based on the notes by the authors, they would need to touch a lot of code to get the lifetime information right to create a tensor from a pointer and ensure safety. |
For now we can just remove the |
375aec3
to
5ce3554
Compare
Yes, feel free to remove the trait. I'd say we merge this state with the allocation. |
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.
thank you for fixing :)
And thank you for integrating all of this and catching the things I missed!! |
* Use new API calls * Fix some mistakes * Remove scratchpad state, directly fill the tensor instead (for now) * Remove manually specifying generics * Remove AsBytes trait
* Use new API calls * Fix some mistakes * Remove scratchpad state, directly fill the tensor instead (for now) * Remove manually specifying generics * Remove AsBytes trait
Why? What?
Use the changed API for creating a tensor. How-To taken from their commit: intel/openvino-rs@b6eacef
Fixes #1083
ToDo / Known Issues
Ideas for Next Iterations (Not This PR)
How to Test
./pepsi run
should build for webots and launch properly.