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

Function sum

python/dgl/backend/tensorflow/tensor.py:162–165  ·  view source on GitHub ↗
(input, dim, keepdims=False)

Source from the content-addressed store, hash-verified

160
161
162def sum(input, dim, keepdims=False):
163 if input.dtype == tf.bool:
164 input = tf.cast(input, tf.int32)
165 return tf.reduce_sum(input, axis=dim, keepdims=keepdims)
166
167
168def floor_div(in1, in2):

Callers 2

_scatter_ndFunction · 0.70
_gather_ndFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected