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

Method GetRootAs

exir/_serialize/generated/executorch_flatbuffer/Int.py:14–18  ·  view source on GitHub ↗
(cls, buf, offset: int = 0)

Source from the content-addressed store, hash-verified

12
13 @classmethod
14 def GetRootAs(cls, buf, offset: int = 0):
15 n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
16 x = Int()
17 x.Init(buf, n + offset)
18 return x
19
20 @classmethod
21 def GetRootAsInt(cls, buf, offset=0):

Callers 1

GetRootAsIntMethod · 0.45

Calls 2

InitMethod · 0.95
IntClass · 0.70

Tested by

no test coverage detected