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

Method forward

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

Source from the content-addressed store, hash-verified

83 self.layers = torch.nn.ModuleList([Layer() for _ in range(64)])
84
85 def forward(self, x):
86 # In regional compilation, the self.linear is outside of the scope of ``torch.compile``.
87 x = self.linear(x)
88 for layer in self.layers:
89 x = layer(x)
90 return x
91
92
93##################################################################################

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected