We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
kornia::Tensor
ort::Tensor
Integration with CUDA buffers would have to go through a different API, TensorRefMut::from_raw. It just needs a pointer and shape, so Kornia's existing APIs suffice. TensorRefMuts can be used zero-copy in session inputs just like a Value, but since the memory is user-managed, it does have a lifetime bound. See ort's cudarc example: https://github.com/pykeio/ort/blob/60f6ecae9064a75a474678998af42ea87067b1b1/examples/cudarc/src/main.rs#L35-L43
TensorRefMut::from_raw
TensorRefMut
Value
cudarc
Originally posted by @decahedron1 in #125 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Integration with CUDA buffers would have to go through a different API,
TensorRefMut::from_raw
. It just needs a pointer and shape, so Kornia's existing APIs suffice.TensorRefMut
s can be used zero-copy in session inputs just like aValue
, but since the memory is user-managed, it does have a lifetime bound. See ort'scudarc
example: https://github.com/pykeio/ort/blob/60f6ecae9064a75a474678998af42ea87067b1b1/examples/cudarc/src/main.rs#L35-L43Originally posted by @decahedron1 in #125 (comment)
The text was updated successfully, but these errors were encountered: