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

Method nbytes

exir/tensor.py:189–190  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

187 return self.allocated_memory
188
189 def nbytes(self) -> int:
190 return num_bytes_from_shape_and_dtype(self.shape, self.dtype)
191
192 @classmethod
193 def from_tensor(cls, tensor: torch.Tensor, const: bool = False) -> TensorSpec:

Callers 15

from_tensorMethod · 0.80
__init__Method · 0.80
placeholderMethod · 0.80
test_emit_weight_viewMethod · 0.80
get_quant_paramsMethod · 0.80
get_serialized_dataMethod · 0.80
_emit_bundled_tensorMethod · 0.80

Calls 1

Tested by 5

test_emit_weight_viewMethod · 0.64
test_method_metaMethod · 0.64