-
Notifications
You must be signed in to change notification settings - Fork 27.7k
[feature request] torch.hypot #22764
Copy link
Copy link
Closed
Labels
enhancementNot as big of a feature, but technically not a bug. Should be easy to fixNot as big of a feature, but technically not a bug. Should be easy to fixmodule: 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
Metadata
Metadata
Assignees
Labels
enhancementNot as big of a feature, but technically not a bug. Should be easy to fixNot as big of a feature, but technically not a bug. Should be easy to fixmodule: 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
torch.stftreturns real and imaginary components as the last dimension. Two very frequent functions to consume it are:absandangle(in NumPy). Abs is similar to regularnp.hypot, so meanwhile complex tensor support is not developed,hypotcould doabs's job.NumPy also has a
hypot, although it accepts two arrays. We may have two versions: one accepting two arrays, another accepting only one array and a dim. Essentially,hypotis a version ofnorm, specialized for two element vectors only.