MCPcopy
hub / github.com/OpenPPL/ppq / GraphDeployCommand

Class GraphDeployCommand

ppq/IR/base/command.py:125–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124
125class 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
139class QuantizeOperationCommand(GraphCommand):

Callers 2

deployMethod · 0.90
load_graphMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected