MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / scatter

Method scatter

detrsmpl/core/distributed_wrapper.py:88–97  ·  view source on GitHub ↗

Scatter function. Args: inputs (Tensor): Input Tensor. kwargs (dict): Args for ``mmcv.parallel.scatter_gather.scatter_kwargs``. device_ids (int): Device id.

(self, inputs, kwargs, device_ids)

Source from the content-addressed store, hash-verified

86 self.module._modules[name] = module
87
88 def scatter(self, inputs, kwargs, device_ids):
89 """Scatter function.
90
91 Args:
92 inputs (Tensor): Input Tensor.
93 kwargs (dict): Args for
94 ``mmcv.parallel.scatter_gather.scatter_kwargs``.
95 device_ids (int): Device id.
96 """
97 return scatter_kwargs(inputs, kwargs, device_ids, dim=self.dim)
98
99 def forward(self, *inputs, **kwargs):
100 """Forward function.

Callers 7

forwardMethod · 0.95
train_stepMethod · 0.95
val_stepMethod · 0.95
_export_framesMethod · 0.80
vis_3d_skeletonFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected