[demo] Getting nanobind to call ndarray conversion functions from C++ after initial ingress #1230
ThisIsFineTM
started this conversation in
General
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a little demo of how I was able to reach into the library to get data conversions working through nanobind after the binding interface step. In my particular use case, I needed to take a generic
nb::ndarray<nb::array_api>at the binding site, but had circumstances where I needed convert the data after the fact. This effectively tells nanobind to go ask the data source library to do the conversion for us without having to fiddle with overloads at the binding site.Beta Was this translation helpful? Give feedback.
All reactions