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

Method forward

recipes_source/regional_aot.py:70–76  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected