-
Notifications
You must be signed in to change notification settings - Fork 67
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
Support more general tensor comparisons #159
Comments
Another behavior that can be updated in this is dsharp.tensor([1.;2.;3.]) < 3.
dsharp.tensor([1.;2.;3.]) < dsharp.tensor(3.)
instead of which we can again support more general comparisons like PyTorch torch.tensor([1,2,3]) < 3
I think this can be accomplished by overloading the relevant operators ( |
Annoyingly the |
Oh good point, I remember now that this was the main reason behind this choice. I think then just supporting the |
I think there's no harm in adding the |
Currently we have the behavior
We can generalize these comparisons to support cases like the following in PyTorch
The text was updated successfully, but these errors were encountered: