MCPcopy Create free account
hub / github.com/pytorch/pytorch / nbytes

Method nbytes

torch/_numpy/_ndarray.py:262–263  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

260
261 @property
262 def nbytes(self):
263 return self.tensor.storage().nbytes()
264
265 @property
266 def T(self):

Callers 11

hash_storageFunction · 0.45
_persistent_idMethod · 0.45
_tensor_metadataMethod · 0.45
_to_bytesMethod · 0.45
_cpu_memory_usageMethod · 0.45
_cuda_memory_usageMethod · 0.45
storageMethod · 0.45
compile_fnMethod · 0.45

Calls 1

storageMethod · 0.45

Tested by

no test coverage detected