-
Notifications
You must be signed in to change notification settings - Fork 27.7k
torch.full is inconsistent with np.full #27171
Copy link
Copy link
Closed
Labels
module: bc-breakingRelated to a BC-breaking changeRelated to a BC-breaking changemodule: 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: bc-breakingRelated to a BC-breaking changeRelated to a BC-breaking changemodule: 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
🐛 Bug
https://docs.scipy.org/doc/numpy/reference/generated/numpy.full.html
Numpy does type inference on
fullbut pytorch does not.To reproduce
Gives:
cc @ezyang @ssnl @gchanan