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

Function sum

python/dgl/backend/backend.py:376–393  ·  view source on GitHub ↗

Reduce sum the input tensor along the given dim. Parameters ---------- input : Tensor The input tensor. dim : int The reduce dim. keepdims : bool Whether to keep the summed dimension. Returns ------- Tensor A framework-specific tensor

(input, dim, keepdims=False)

Source from the content-addressed store, hash-verified

374
375
376def sum(input, dim, keepdims=False):
377 """Reduce sum the input tensor along the given dim.
378
379 Parameters
380 ----------
381 input : Tensor
382 The input tensor.
383 dim : int
384 The reduce dim.
385 keepdims : bool
386 Whether to keep the summed dimension.
387
388 Returns
389 -------
390 Tensor
391 A framework-specific tensor.
392 """
393 pass
394
395
396def floor_div(in1, in2):

Callers 15

num_nodesMethod · 0.50
num_src_nodesMethod · 0.50
num_dst_nodesMethod · 0.50
num_edgesMethod · 0.50
sampleMethod · 0.50
__init__Method · 0.50
num_nodesMethod · 0.50
num_edgesMethod · 0.50
rcmk_permFunction · 0.50
_forwardMethod · 0.50
_inverseMethod · 0.50

Calls

no outgoing calls

Tested by 1

mainFunction · 0.40