-
Notifications
You must be signed in to change notification settings - Fork 27.7k
torch.Tensor.repeat is divergent from np.repeat #50013
Copy link
Copy link
Open
Labels
high prioritymodule: 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
high prioritymodule: 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
torch.Tensor.repeat, as its documentation notes, is divergent from np.repeat but similar to np.tile. Now that torch.tile is implemented, we can deprecate torch.repeat in favor of torch.tile by doing the following:
torch.Tensor.repeatin favor of torch.tile for a releasenp.repeat is a top 50 NumPy function, and torch.Tensor.repeat (note that torch.repeat does not exist) is popular with hundreds of uses within Facebook.
cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @mruberry @rgommers @heitorschueroff