Contents
scale_bwd()
Applies a scalar multiplication to a tensor in only the backward pass.
input (Tensor) – the tensor to be scaled.
scale (float) – the scale factor applied to the tensor in the backward pass.
unchanged in the forward pass, but with a scaled grad.
Tensor