(ctx, *args: Union[HLOTensor, Sequence[HLOTensor]])
| 737 | |
| 738 | @register_lower_rule("SoftmaxBackward") |
| 739 | def softmax_backward_lower(ctx, *args: Union[HLOTensor, Sequence[HLOTensor]]): |
| 740 | assert ( |
| 741 | len(args) == 2 and len(ctx.vars_in) == 2 and len(ctx.vars_out) == 1 |
| 742 | ), f"{len(args)}, {len(ctx.vars_in)}, {len(ctx.vars_out)}" |
| 743 | return softmax_grad(args[0], args[1], ctx.param["axis"]) |
nothing calls this directly
no test coverage detected