MCPcopy Create free account
hub / github.com/Duankaiwen/CenterNet / parallel_apply

Method parallel_apply

models/py_utils/data_parallel.py:79–80  ·  view source on GitHub ↗
(self, replicas, inputs, kwargs)

Source from the content-addressed store, hash-verified

77 return scatter_kwargs(inputs, kwargs, device_ids, dim=self.dim, chunk_sizes=self.chunk_sizes)
78
79 def parallel_apply(self, replicas, inputs, kwargs):
80 return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
81
82 def gather(self, outputs, output_device):
83 return gather(outputs, output_device, dim=self.dim)

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected