Replies: 1 comment 1 reply
-
The error message is weird, I agree with that. I think the key problem is that you didn't specify an owner, which means that nanobind must make a copy. But it cannot make a copy of a raw DLPack capsule because the data might be wherever (e.g. on a CUDA or ROCm device, and nanobind doesn't link against these libraries. So we cannot memcpy). What happens when you set the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From the docs I thought the following would work (e.g. no framework annotation):
But it fails with the error:
Is that expected? If so, is it possible to access and return the DLPack capsule in a bound function (e.g.
__dlpack__
).Beta Was this translation helpful? Give feedback.
All reactions