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

Method __init__

tests/python/test_function.py:351–352  ·  view source on GitHub ↗
(self, device: tvm_ffi.Device)

Source from the content-addressed store, hash-verified

349
350 class DLPackDeviceProtocol:
351 def __init__(self, device: tvm_ffi.Device) -> None:
352 self.device = device
353
354 def __dlpack_device__(self) -> tuple[int, int]:
355 return (self.device.dlpack_device_type(), self.device.index)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected