-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Closed
Labels
featureA request for a proper, new feature.A request for a proper, new feature.module: numpyRelated to numpy support, and also numpy compatibility of our operatorsRelated to numpy support, and also numpy compatibility of our operatorstriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
🚀 Feature
Implement torch.where(condition) as an alias for a NumPy-like nonzero. Currently, we only support torch.where(condition, x, y) with the second and third arguments.
Motivation
NumPy supports numpy.where(condition) without the x and y arguments. It's behaves like numpy.nonzero.
Pitch
Maybe @alexpeys will stop bugging me if you implement this
Alternatives
Move @alexpeys's desk farther away
fmassa, mdlockyer, pushpulldecoder and umanwizardfmassa and mdlockyer
Metadata
Metadata
Assignees
Labels
featureA request for a proper, new feature.A request for a proper, new feature.module: numpyRelated to numpy support, and also numpy compatibility of our operatorsRelated to numpy support, and also numpy compatibility of our operatorstriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module