Initialize a stream context with a device and stream handle.
(self, device: core.Device, stream: int | c_void_p)
| 49 | """ |
| 50 | |
| 51 | def __init__(self, device: core.Device, stream: int | c_void_p) -> None: |
| 52 | """Initialize a stream context with a device and stream handle.""" |
| 53 | self.device_type = device.dlpack_device_type() |
| 54 | self.device_id = device.index |
| 55 | self.stream = stream |
| 56 | |
| 57 | def __enter__(self) -> StreamContext: |
| 58 | """Enter the context and set the current stream.""" |
nothing calls this directly
no outgoing calls
no test coverage detected