(self, gidx, eids, norm_by)
| 319 | |
| 320 | class 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. |
nothing calls this directly
no test coverage detected