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

Method __init__

python/dgl/backend/mxnet/sparse.py:321–327  ·  view source on GitHub ↗
(self, gidx, eids, norm_by)

Source from the content-addressed store, hash-verified

319
320class EdgeSoftmax(mx.autograd.Function):
321 def __init__(self, gidx, eids, norm_by):
322 super(EdgeSoftmax, self).__init__()
323 if not is_all(eids):
324 gidx = gidx.edge_subgraph([eids], True).graph
325 if norm_by == "src":
326 gidx = gidx.reverse()
327 self.gidx = gidx
328
329 def forward(self, score):
330 """Forward function.

Callers

nothing calls this directly

Calls 4

is_allFunction · 0.85
reverseMethod · 0.80
__init__Method · 0.45
edge_subgraphMethod · 0.45

Tested by

no test coverage detected