MCPcopy Create free account
hub / github.com/apache/tvm-ffi / __dlpack_device__

Method __dlpack_device__

tests/python/test_function.py:354–355  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

352 self.device = device
353
354 def __dlpack_device__(self) -> tuple[int, int]:
355 return (self.device.dlpack_device_type(), self.device.index)
356
357 fecho = tvm_ffi.get_global_func("testing.echo")
358 x = DLPackDeviceProtocol(device)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected