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

Function _segment_mm

python/dgl/_sparse_ops.py:436–446  ·  view source on GitHub ↗

Invoke the C API of segment_mm.

(A, B, out, seglen_A, b_trans=False)

Source from the content-addressed store, hash-verified

434
435
436def _segment_mm(A, B, out, seglen_A, b_trans=False):
437 """Invoke the C API of segment_mm."""
438 _CAPI_DGLKernelSEGMENTMM(
439 to_dgl_nd(A),
440 to_dgl_nd(B),
441 to_dgl_nd_for_write(out),
442 to_dgl_nd(seglen_A),
443 False,
444 b_trans,
445 )
446 return out
447
448
449def _segment_mm_backward_B(A, dC, dB, seglen):

Callers 2

forwardMethod · 0.85
backwardMethod · 0.85

Calls 2

to_dgl_nd_for_writeFunction · 0.85
to_dgl_ndFunction · 0.70

Tested by

no test coverage detected