Skip to content

pybind11 stuff that is missing in nanobind #77

Answered by wjakob
steven-johnson asked this question in Q&A
Discussion options

You must be logged in to vote

Documentation on nb::tensor, which presumably replaces py::buffer. Overall the concept looks like a big improvement, but this should definitely be called out as an API change in the README, as the changes are nontrivial enough that it's not just a drop-in change.

There was never a guarantee of API compatibility. I am trying to stay mostly close when the existing API was a good choice, but in other cases I am making drastic changes. The tensors are one such example.

They are quite extensively documented through a Markdown page (https://github.com/wjakob/nanobind/blob/master/docs/tensor.md) and a testcase (https://github.com/wjakob/nanobind/blob/master/tests/test_tensor.py, https://github…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@steven-johnson
Comment options

@wjakob
Comment options

@froody
Comment options

@wjakob
Comment options

Comment options

You must be logged in to vote
1 reply
@steven-johnson
Comment options

Answer selected by wjakob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants