Sorry, only just saw this.
It’s for when you want to negate the gradients selectively for some parts of the network; multiplying the loss by -1 works but doesn’t give you any choice over which parts of the network get updated with the inverted gradients