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

Function _check_device

tests/python/test_tensor.py:194–195  ·  view source on GitHub ↗
(x: tvm_ffi.Tensor)

Source from the content-addressed store, hash-verified

192
193 @tvm_ffi.register_global_func("testing.check_device", override=True)
194 def _check_device(x: tvm_ffi.Tensor) -> str:
195 return x.device.type
196
197 # PyTorch uses device name "cuda" to represent ROCm device
198 x = torch.randn(128, device="cuda")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected