MCPcopy Create free account
hub / github.com/csslc/PiSA-SR / forward

Method forward

ram/models/bert.py:369–373  ·  view source on GitHub ↗
(self, hidden_states, input_tensor)

Source from the content-addressed store, hash-verified

367 self.dropout = nn.Dropout(config.hidden_dropout_prob)
368
369 def forward(self, hidden_states, input_tensor):
370 hidden_states = self.dense(hidden_states)
371 hidden_states = self.dropout(hidden_states)
372 hidden_states = self.LayerNorm(hidden_states + input_tensor)
373 return hidden_states
374
375
376class BertLayer(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected