-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exposing Eigen::Tensor To Python #2119
Comments
@afalahat I have the same problem. |
I don't think exposing the tensor is doable as |
There's always an option of writing a custom caster. That said, a pull request would be welcome. We do need help maintaining the |
I wrote type casters for |
I am trying to expose an Eigen tensor to python using pybind11. I can compile everything with no issue and can successfully import it to python. However, the data cannot be converted to a python type. I tried two methods. One is directly exposing the data and second using mapping. Both fail in python environment.
I would like to be able to process this 3D array in python with its dimensional information
(m_dim1, m_dim2, m_dim3)
.Here are the error messages I get after trying to get the data in python.
I tried including all pybdin11 include files but did not fix the problem. Could someone kindly help me?
The text was updated successfully, but these errors were encountered: