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

Class Tensor

exir/schema.py:70–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69@dataclass
70class Tensor:
71 scalar_type: ScalarType
72 storage_offset: int
73 sizes: List[int]
74 dim_order: List[int]
75 requires_grad: bool
76 layout: int
77 data_buffer_idx: int
78 allocation_info: Optional[AllocationDetails]
79
80 # check program.fbs for explanations.
81 shape_dynamism: TensorShapeDynamism
82 extra_tensor_info: Optional[ExtraTensorInfo] = None
83
84
85@dataclass

Callers 4

_make_programMethod · 0.90
get_test_programFunction · 0.90

Calls

no outgoing calls

Tested by 2

_make_programMethod · 0.72