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

Function _segment_mm_backward_B

python/dgl/_sparse_ops.py:449–454  ·  view source on GitHub ↗

Invoke the C API of the backward of segment_mm on B.

(A, dC, dB, seglen)

Source from the content-addressed store, hash-verified

447
448
449def _segment_mm_backward_B(A, dC, dB, seglen):
450 """Invoke the C API of the backward of segment_mm on B."""
451 _CAPI_DGLKernelSEGMENTMMBackwardB(
452 to_dgl_nd(A), to_dgl_nd(dC), to_dgl_nd_for_write(dB), to_dgl_nd(seglen)
453 )
454 return dB
455
456
457def _gather_mm(A, B, out, idx_a=None, idx_b=None):

Callers 1

backwardMethod · 0.85

Calls 2

to_dgl_nd_for_writeFunction · 0.85
to_dgl_ndFunction · 0.70

Tested by

no test coverage detected