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

Method forward

recipes_source/regional_compilation.py:72–78  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

70 self.relu2 = torch.nn.ReLU()
71
72 def forward(self, x):
73 a = self.linear1(x)
74 a = self.relu1(a)
75 a = torch.sigmoid(a)
76 b = self.linear2(a)
77 b = self.relu2(b)
78 return b
79
80
81class Model(torch.nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected