MCPcopy
hub / github.com/THUDM/CogDL / backward

Method backward

cogdl/operators/edge_softmax.py:34–38  ·  view source on GitHub ↗
(ctx, grad_out)

Source from the content-addressed store, hash-verified

32
33 @staticmethod
34 def backward(ctx, grad_out):
35 rowptr, out = ctx.saved_tensors
36 grad_out = grad_out.contiguous()
37 grad_softmax = edge_softmax.edge_softmax_backward(rowptr, out, grad_out)
38 return None, grad_softmax

Callers

nothing calls this directly

Calls 1

contiguousMethod · 0.80

Tested by

no test coverage detected