MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / forward

Method forward

tests/unit/modeling.py:365–369  ·  view source on GitHub ↗
(self, hidden_states, input_tensor)

Source from the content-addressed store, hash-verified

363 self.dropout = nn.Dropout(config.hidden_dropout_prob)
364
365 def forward(self, hidden_states, input_tensor):
366 hidden_states = self.dense(hidden_states)
367 hidden_states = self.dropout(hidden_states)
368 hidden_states = self.LayerNorm(hidden_states + input_tensor)
369 return hidden_states
370
371
372class BertLayer(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected