MCPcopy Create free account
hub / github.com/pytorch/examples / forward

Method forward

distributed/rpc/pipeline/main.py:134–138  ·  view source on GitHub ↗
(self, x_rref)

Source from the content-addressed store, hash-verified

132 self.fc = nn.Linear(512 * self._block.expansion, num_classes).to(self.device)
133
134 def forward(self, x_rref):
135 x = x_rref.to_here().to(self.device)
136 with self._lock:
137 out = self.fc(torch.flatten(self.seq(x), 1))
138 return out.cpu()
139
140
141class DistResNet50(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected