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

Function edge_softmax

python/dgl/backend/tensorflow/sparse.py:300–305  ·  view source on GitHub ↗
(gidx, logits, eids=ALL, norm_by="dst")

Source from the content-addressed store, hash-verified

298
299
300def edge_softmax(gidx, logits, eids=ALL, norm_by="dst"):
301 @tf.custom_gradient
302 def _lambda(logits):
303 return edge_softmax_real(gidx, logits, eids, norm_by)
304
305 return _lambda(logits)
306
307
308def segment_reduce_real(op, x, offsets):

Callers

nothing calls this directly

Calls 1

_lambdaFunction · 0.85

Tested by

no test coverage detected