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

Method realign

exir/tensor.py:185–187  ·  view source on GitHub ↗
(self, new_alignment: int)

Source from the content-addressed store, hash-verified

183 return calculate_aligned_num_bytes(nbytes, self.alignment)
184
185 def realign(self, new_alignment: int) -> int:
186 self.alignment = new_alignment
187 return self.allocated_memory
188
189 def nbytes(self) -> int:
190 return num_bytes_from_shape_and_dtype(self.shape, self.dtype)

Callers 3

greedyFunction · 0.80
naiveFunction · 0.80
run_multimethodMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected