MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / forward

Method forward

examples/pytorch/bert/utils/encoder.py:322–324  ·  view source on GitHub ↗
(self, hidden_states, attention_mask, sequence_lengths)

Source from the content-addressed store, hash-verified

320 head_num, head_size, remove_padding, layer_num, int8_mode, sparse, 1.0)
321
322 def forward(self, hidden_states, attention_mask, sequence_lengths):
323 hidden_states = self.encoders.forward(hidden_states, sequence_lengths)
324 return (hidden_states,)
325
326
327class HuggingFaceEncoder(torch.nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected