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

Method forward

networks/SATRN.py:214–216  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

212 self.register_buffer('pe', pe)
213
214 def forward(self, x):
215 x = x + self.pe[:, :x.size(1)]
216 return self.dropout(x)
217
218
219# adaptive 2D positional encoding

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected