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

Method memsize

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

Returns: the number of Bytes allocated for this tensor.

(self)

Source from the content-addressed store, hash-verified

217 return self.data.Size()
218
219 def memsize(self):
220 '''
221 Returns:
222 the number of Bytes allocated for this tensor.
223 '''
224 return self.data.MemSize()
225
226 def contiguous(self):
227 t = Tensor(self.shape, self.device, self.dtype)

Callers

nothing calls this directly

Calls 1

MemSizeMethod · 0.80

Tested by

no test coverage detected