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

Method memsize

python/singa/tensor.py:220–225  ·  view source on GitHub ↗

Returns: the number of Bytes allocated for this tensor.

(self)

Source from the content-addressed store, hash-verified

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

Callers 1

test_tensor_fieldsMethod · 0.45

Calls 1

MemSizeMethod · 0.80

Tested by 1

test_tensor_fieldsMethod · 0.36