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

Method from_dlpack

imperative/python/megengine/xla/compile.py:65–68  ·  view source on GitHub ↗
(self, dlpack)

Source from the content-addressed store, hash-verified

63 self.input_indices = input_indices
64
65 def from_dlpack(self, dlpack):
66 return xe.dlpack_managed_tensor_to_buffer(
67 dlpack, None, self.local_devices[0].client
68 )
69
70 def __call__(self, input_buffers):
71 rst = []

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected