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

Method to

ppq/executor/torch.py:359–363  ·  view source on GitHub ↗
(self, device: str)

Source from the content-addressed store, hash-verified

357 self._runnable_graph(GraphDeployCommand(device=self._device))
358
359 def to(self, device: str):
360 # just keep TorchExecutor behaving like torch.nn.Module
361 self._device = torch.device(device)
362 self.deploy()
363 return self
364
365 @ torch.no_grad()
366 def forward(

Callers 15

tensor_random_fetchFunction · 0.80
channel_random_fetchFunction · 0.80
batch_random_fetchFunction · 0.80
collate_fnFunction · 0.80
collate_fnFunction · 0.80
collate_fnFunction · 0.80
collate_fnFunction · 0.80

Calls 1

deployMethod · 0.95

Tested by

no test coverage detected