'Whether this operator needs out_grad for backward.
Returns
need_top_grad : bool
Whether this operator needs out_grad for backward.
Should be set to False for loss layers.'

def need_top_grad(self):

    return self.need_top_grad_
