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

Method __call__

imperative/python/megengine/xla/compile.py:70–79  ·  view source on GitHub ↗
(self, input_buffers)

Source from the content-addressed store, hash-verified

68 )
69
70 def __call__(self, input_buffers):
71 rst = []
72 for idx, i in enumerate(input_buffers):
73 if i._is_external_value():
74 rst.append([i._external_obj()])
75 else:
76 capsule = to_dlpack(i)
77 xla_array = self.from_dlpack(capsule)
78 rst.append([xla_array])
79 return rst
80
81 def __str__(self):
82 return (

Callers

nothing calls this directly

Calls 5

from_dlpackMethod · 0.95
to_dlpackFunction · 0.85
_is_external_valueMethod · 0.80
_external_objMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected