MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / __call__

Method __call__

imperative/python/megengine/xla/compile.py:115–119  ·  view source on GitHub ↗
(self, out_bufs)

Source from the content-addressed store, hash-verified

113 self.out_avals = out_avals
114
115 def __call__(self, out_bufs):
116 if isinstance(self.handlers, list):
117 return [h(bufs) for h, bufs in safe_zip(self.handlers, out_bufs)]
118 else:
119 return [self.handlers(bufs) for bufs in out_bufs]
120
121
122class Executable(Protocol):

Callers

nothing calls this directly

Calls 1

safe_zipFunction · 0.85

Tested by

no test coverage detected