-
Notifications
You must be signed in to change notification settings - Fork 402
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
Implicit pytensor
to xtensor
?
#1377
Comments
Removing the |
You are absolutely correct. Silly me :( I do hope we can have a type |
Perhaps |
template constraints in C++ are really primitive for now (basically enable_if), you can add some syntactic sugar, like we did with XTL_REQUIRE, but that's still requires improvements. Concepts and constraints are supposed to land in the C++20. You can also have a look at this blogpost for solutions about API designs. |
I ended up with
Maybe |
From https://xtensor.readthedocs.io/en/latest/bindings.html#full-qualified-api we need to define 2 extra generic functions to bridge
pytensor
&xtensor
However, it seems the conversion is implicit. The following works.
Is there anything I need to concern? From my test it doesn't seem extra copy.
The text was updated successfully, but these errors were encountered: