-
Notifications
You must be signed in to change notification settings - Fork 58
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
problem calculating quantile on pytensor #286
Comments
Thanks for reporting. This is definitely a bug in xtensor. |
Hi @AntoinePrv, do you think that this issue is related to xtensor-stack/xtensor#2651, and so would be fixed by xtensor-stack/xtensor#2652 too, or is this an unrelated problem? |
@ThibHlln I could not reproduce this. Is this a compiler error? If so which one and on which platform? I does not seem related to xtensor-stack/xtensor#2651 but perhaps since xtensor-stack/xtensor#2651 is a big refactor it could solve it. Do you have the time to try? |
Hi @AntoinePrv, Yes, this is a compiler error I get
So, I tried with your PR xtensor-stack/xtensor#2652, and even though it does not look like you touched the line the compiler is complaining about (i.e. https://github.com/xtensor-stack/xtensor/blob/master/include/xtensor/xsort.hpp#L463), I don't get the error anymore on Windows with MSVC |
Basically in IMHO the real issue here, and in other bugs we've caught, is that xtensor functions are not tested consistently with all types of containers (let alone view, expressions). Tracking in xtensor-stack/xtensor#2658. |
OK, thank you for the explanation @AntoinePrv. Even though my MWE provided above only failed with MSVC on Windows, in a more complex project, I had the same kind of failure with Clang on macOS. But once again, using xtensor-stack/xtensor#2652 fixed it, so I am looking forward to the PR merge now. :-) |
Just FYI, I hit the exact same error message when I didn't have the Python headers included as system headers (i.e. |
Hi,
The new added
xt::quantile
seems not to play nicely withpytensor
.For me, the following :
raises :
I am using
xtl==0.7.5
,xtensor==0.24.4
,xtensor-python==0.26.1
,pybind11==2.10.3
.The text was updated successfully, but these errors were encountered: