| 123 | |
| 124 | |
| 125 | class GraphDeployCommand(GraphCommand): |
| 126 | def __init__(self, device: str) -> None: |
| 127 | if device.startswith('cuda'): |
| 128 | super().__init__(GraphCommandType.DEPLOY_TO_CUDA) |
| 129 | elif device.startswith('cpu'): |
| 130 | super().__init__(GraphCommandType.DEPLOY_TO_CPU) |
| 131 | else: |
| 132 | raise ValueError(f'Device type {device} not understand.') |
| 133 | self._device = device |
| 134 | |
| 135 | def __str__(self) -> str: |
| 136 | return super().__str__() |
| 137 | |
| 138 | |
| 139 | class QuantizeOperationCommand(GraphCommand): |
no outgoing calls
no test coverage detected