MCPcopy Create free account
hub / github.com/chibohe/text_recognition_toolbox / forward

Method forward

networks/SATRN.py:97–101  ·  view source on GitHub ↗

Pass the input (and mask) through each layer in turn.

(self, x)

Source from the content-addressed store, hash-verified

95 self.norm = LayerNorm(layer.size)
96
97 def forward(self, x):
98 "Pass the input (and mask) through each layer in turn."
99 for layer in self.layers:
100 x = layer(x)
101 return self.norm(x)
102
103
104class LayerNorm(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected