You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implictly converting non-contiguous nd arrays to contiguous ones works fine except for complex64 which fails with a type error. My understanding is nanobind should implicitly cast the non-contiguous array to a contiguous one (or at least the behavior should be consistent across types).
TypeError: convert(): incompatible function arguments. The following argument types are supported:
1. convert(arg: ndarray[writable=False, order='C', device='cpu']) -> None
Invoked with types: ndarray
Problem description
Implictly converting non-contiguous nd arrays to contiguous ones works fine except for complex64 which fails with a type error. My understanding is nanobind should implicitly cast the non-contiguous array to a contiguous one (or at least the behavior should be consistent across types).
Reproducible example code
The extension (
my_ext.cpp
)The Python code:
The text was updated successfully, but these errors were encountered: