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

Method Sizes

exir/_serialize/generated/executorch_flatbuffer/Tensor.py:51–56  ·  view source on GitHub ↗
(self, j: int)

Source from the content-addressed store, hash-verified

49
50 # Tensor
51 def Sizes(self, j: int):
52 o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
53 if o != 0:
54 a = self._tab.Vector(o)
55 return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4))
56 return 0
57
58 # Tensor
59 def SizesAsNumpy(self):

Callers 1

_UnPackMethod · 0.80

Calls 1

OffsetMethod · 0.45

Tested by

no test coverage detected