Skip to content

Confusing error when manipulating NumPy arrays #134

Answered by wjakob
tbridel asked this question in Q&A
Discussion options

You must be logged in to vote

Are you using nanobind master or 0.1.0? (In the latter case, please try the master branch). If that's not the issue, then could it be that you are not calling the function with 1D tensors? (You specified nb::shape<nb::any> -- if you want to accept any shape+dimension, remove the nb::shape annotation completly.).

Replies: 2 comments 18 replies

Comment options

You must be logged in to vote
18 replies
@wjakob
Comment options

@tbridel
Comment options

@tbridel
Comment options

@wjakob
Comment options

@tbridel
Comment options

Answer selected by wjakob
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants