MCPcopy
hub / github.com/dmlc/dgl / forward

Method forward

python/dgl/backend/pytorch/sparse.py:830–834  ·  view source on GitHub ↗
(ctx, op, x, offsets)

Source from the content-addressed store, hash-verified

828class 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):

Callers

nothing calls this directly

Calls 1

_segment_reduceFunction · 0.85

Tested by

no test coverage detected