Closed rjanvier closed 6 months ago
Please read the ndarray section carefully. Somebody need to own this data.
ok, thank a lot I think I got it. So it's different from pybind In this aspect. What surprise me is that it worked for the small array and I have also a bunch of other array (float ones) in my code base that just do work with the kind of "owner less" pattern I wrote in the minimal sample.
This actually has come up several times before. I made the owner
argument mandatory: https://github.com/wjakob/nanobind/commit/937a1df52428f04a0a240cc5827fb3c6769cf5c2
Problem description
Hi, I have some issue when returning some "big" uint
nb::ndarray
. I'm runningmacOS
, but it even crashes underLinux
(I'm not sure 100% though, because I tested my problematic codebase, not the minimal example). thank in advance.Reproducible example code