(ctx, op, x, offsets)
| 828 | class SegmentReduce(th.autograd.Function): |
| 829 | @staticmethod |
| 830 | def forward(ctx, op, x, offsets): |
| 831 | y, arg = _segment_reduce(op, x, offsets) |
| 832 | ctx.save_for_backward(arg, offsets) |
| 833 | ctx.backward_cache = op |
| 834 | return y |
| 835 | |
| 836 | @staticmethod |
| 837 | def backward(ctx, dy): |
nothing calls this directly
no test coverage detected