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

Method forward

python/dgl/backend/pytorch/sparse.py:858–861  ·  view source on GitHub ↗
(ctx, x, idx, m)

Source from the content-addressed store, hash-verified

856class ScatterAdd(th.autograd.Function):
857 @staticmethod
858 def forward(ctx, x, idx, m):
859 y = _scatter_add(x, idx, m)
860 ctx.save_for_backward(idx)
861 return y
862
863 @staticmethod
864 def backward(ctx, dy):

Callers

nothing calls this directly

Calls 1

_scatter_addFunction · 0.50

Tested by

no test coverage detected