MCPcopy Create free account
hub / github.com/NVIDIA/semantic-segmentation / scatter

Method scatter

utils/my_data_parallel.py:195–196  ·  view source on GitHub ↗
(self, inputs, kwargs, device_ids)

Source from the content-addressed store, hash-verified

193 return replicate(module, device_ids)
194
195 def scatter(self, inputs, kwargs, device_ids):
196 return scatter_kwargs(inputs, kwargs, device_ids, dim=self.dim)
197
198 def parallel_apply(self, replicas, inputs, kwargs):
199 return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected