Replies: 1 comment 5 replies
-
You can use Based on what you say, the easiest think would be if |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been struggling with a library where I rely on
nb::ndarray<>
and have access todlpack::dtype
as well asstd::type_info
.Right now I've been returning the
std::type_info::name
as a string for the function that returns, but this name is a rather not-user-friendly such asa
andh
and so on... is there a way to at least convert thestd::type_info
todlpack::dtype
where possible so I can at least return (for a subset of the scenarios) thenbits
andsigned
portion instead which is easier to understand? Or even being able to return thenp.dtype
equivalent would be great on some level.I saw (likely internal) functions such as
detail::nb_type_lookup
which returns a correspondingPyObject *
but that's not seemingly exposed for us to use.Beta Was this translation helpful? Give feedback.
All reactions