Deprecate torch.add(tensor, value, other) #19200
Labels
module: bc-breaking
Related to a BC-breaking change
module: deprecation
module: numpy
Related to numpy support, and also numpy compatibility of our operators
module: ux
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃殌 Feature
It's confusing that add has the scale argument. Could we create a new
torch.axpy
function that does this?Motivation
Numpy also makes this separation: they have numpy.add, and scipy.blas.axpy.
This could also make things nicer: add can be treated as an example of a binary pointwise operation like mul, sub, div and not require any special casing for its
value
argument.cc @ezyang @gchanan @mruberry @rgommers @heitorschueroff @cpuhrsch
The text was updated successfully, but these errors were encountered: