Method
__init__
(self, *, binary: Path, drafter: Path, gpu: int, backend: str,
visible_devices: str | None, log_path: Path,
env: dict[str, str])
Source from the content-addressed store, hash-verified
| 113 | |
| 114 | class PFlashDaemon: |
| 115 | def __init__(self, *, binary: Path, drafter: Path, gpu: int, backend: str, |
| 116 | visible_devices: str | None, log_path: Path, |
| 117 | env: dict[str, str]) -> None: |
| 118 | self.binary = binary |
| 119 | self.drafter = drafter |
| 120 | self.gpu = gpu |
| 121 | self.backend = backend |
| 122 | self.visible_devices = visible_devices |
| 123 | self.log = ProcessLog(log_path) |
| 124 | self.env = env |
| 125 | self.proc: subprocess.Popen[bytes] | None = None |
| 126 | self.r_fd: int | None = None |
| 127 | |
| 128 | def start(self) -> float: |
| 129 | r_fd, w_fd = os.pipe() |
Callers
nothing calls this directly
Tested by
no test coverage detected