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

Method Pack

exir/_serialize/generated/executorch_flatbuffer/Frame.py:141–157  ·  view source on GitHub ↗
(self, builder)

Source from the content-addressed store, hash-verified

139
140 # FrameT
141 def Pack(self, builder):
142 if self.filename is not None:
143 filename = builder.CreateString(self.filename)
144 if self.name is not None:
145 name = builder.CreateString(self.name)
146 if self.context is not None:
147 context = builder.CreateString(self.context)
148 FrameStart(builder)
149 if self.filename is not None:
150 FrameAddFilename(builder, filename)
151 FrameAddLineno(builder, self.lineno)
152 if self.name is not None:
153 FrameAddName(builder, name)
154 if self.context is not None:
155 FrameAddContext(builder, context)
156 frame = FrameEnd(builder)
157 return frame

Callers

nothing calls this directly

Calls 6

FrameStartFunction · 0.85
FrameAddFilenameFunction · 0.85
FrameAddLinenoFunction · 0.85
FrameAddNameFunction · 0.85
FrameAddContextFunction · 0.85
FrameEndFunction · 0.85

Tested by

no test coverage detected