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

Method allocated_memory

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

Source from the content-addressed store, hash-verified

179
180 @property
181 def allocated_memory(self) -> int:
182 nbytes = num_bytes_from_shape_and_dtype(self.shape, self.dtype)
183 return calculate_aligned_num_bytes(nbytes, self.alignment)
184
185 def realign(self, new_alignment: int) -> int:
186 self.alignment = new_alignment

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected