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

Class AllocationSpec

exir/memory_planning.py:691–699  ·  view source on GitHub ↗

AllocationSpec is used to represent the allocation of a tensor.

Source from the content-addressed store, hash-verified

689
690@dataclass
691class AllocationSpec:
692 """
693 AllocationSpec is used to represent the allocation of a tensor.
694 """
695
696 # The offset of the tensor in the shared object/pool.
697 offset: int
698 # TensorSpec
699 spec: TensorSpec
700
701
702@dataclass

Callers 1

pick_shared_objFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected