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

Method deploy

ppq/executor/torch.py:350–357  ·  view source on GitHub ↗

Deploy graph parameters towards target device. Raises: ValueError: [when target device is unacceptable]

(self)

Source from the content-addressed store, hash-verified

348 self._delegates.pop(config)
349
350 def deploy(self):
351 """Deploy graph parameters towards target device.
352
353 Raises:
354 ValueError: [when target device is unacceptable]
355 """
356 self._deployed = True
357 self._runnable_graph(GraphDeployCommand(device=self._device))
358
359 def to(self, device: str):
360 # just keep TorchExecutor behaving like torch.nn.Module

Callers 2

__init__Method · 0.95
toMethod · 0.95

Calls 1

GraphDeployCommandClass · 0.90

Tested by

no test coverage detected