MCPcopy Create free account
hub / github.com/apache/singa / size

Method size

python/singa/tensor.py:213–218  ·  view source on GitHub ↗

Returns: the number of elements of the tensor.

(self)

Source from the content-addressed store, hash-verified

211 return t
212
213 def size(self): # TODO(wangwei) compute size
214 '''
215 Returns:
216 the number of elements of the tensor.
217 '''
218 return self.data.Size()
219
220 def memsize(self):
221 '''

Callers 9

copy_from_numpyMethod · 0.95
copy_dataMethod · 0.95
backward_and_updateMethod · 0.45
backwardFunction · 0.45
to_numpyFunction · 0.45
averageFunction · 0.45

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected