MCPcopy Create free account
hub / github.com/pytorch/pytorch / _run_ddp_forward

Method _run_ddp_forward

torch/nn/parallel/distributed.py:1357–1359  ·  view source on GitHub ↗
(self, *inputs, **kwargs)

Source from the content-addressed store, hash-verified

1355 DistributedDataParallel._active_ddp_module = None
1356
1357 def _run_ddp_forward(self, *inputs, **kwargs):
1358 with self._inside_ddp_forward():
1359 return self.module(*inputs, **kwargs) # type: ignore[index]
1360
1361 def _clear_grad_buffer(self):
1362 # Making param.grad points to the grad buffers before backward is based on the

Callers 1

forwardMethod · 0.95

Calls 2

_inside_ddp_forwardMethod · 0.95
moduleMethod · 0.45

Tested by

no test coverage detected