Hi,
The thing is that to backpropagate, you need to provide the original signal to backpropagate.
For functions that return a scalar, then the It’s natural to use 1 to get gradients and so that’s what we do.
For functions that return more than one value, there is no natural signal here. So you need to provide it with the grad_outputs argument.