Replies: 1 comment 1 reply
-
ndarray does not allocate new memory, it only wraps memory by you already. This is by design -- nanobind, e.g., does not want to interface with CUDA to be able to do allocations for the GPU. The tricky thing with initialization of |
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.
-
I would like to pre-allocate the sizes of the python native objects. With
ndarray
this is partially possible by specifyingnb::shape<>
, but if you have a dynamic size that you want to initialize, what then? And what aboutnb::list
? Am I missing something in the interface?Beta Was this translation helpful? Give feedback.
All reactions