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

Method size

examples/model_selection/Trails/singa_pkg_code/tensor.py:212–217  ·  view source on GitHub ↗

Returns: the number of elements of the tensor.

(self)

Source from the content-addressed store, hash-verified

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

Callers 15

copy_from_numpyMethod · 0.95
copy_dataMethod · 0.95
to_numpyFunction · 0.45
averageFunction · 0.45
accuracyFunction · 0.45
__call__Method · 0.45
count_parameters_in_MBFunction · 0.45
drop_pathFunction · 0.45
sample_subnetMethod · 0.45
sample_subnetMethod · 0.45
_p1_evaluate_onlineMethod · 0.45
retrievel_dataMethod · 0.45

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected