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

Method __init__

tests/python/test_device.py:122–123  ·  view source on GitHub ↗
(self, stream: int)

Source from the content-addressed store, hash-verified

120def test_cuda_stream_handling() -> None:
121 class MyDummyStream:
122 def __init__(self, stream: int) -> None:
123 self.stream = stream
124
125 def __cuda_stream__(self) -> tuple[str, int]:
126 return ("cuda", self.stream)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected