-
Notifications
You must be signed in to change notification settings - Fork 27.7k
torch.meshgrid is divergent from np.meshgrid #50276
Copy link
Copy link
Open
Labels
module: deprecationmodule: 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
module: deprecationmodule: 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
PyTorch's torch.meshgrid is divergent from NumPy's np.meshgrid. The documentation for these functions is very hard to parse, so I am not sure if this is a bug or not.
Snippet demonstrating the divergence:
NumPy's np.meshgrid is a top 100 NumPy function. PyTorch's meshgrid is used hundreds of times within Facebook.
cc @mruberry @rgommers @heitorschueroff