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