MCPcopy Create free account
hub / github.com/brightmart/text_classification / get_sequence_output

Method get_sequence_output

a00_Bert/bert_modeling.py:249–256  ·  view source on GitHub ↗

Gets final hidden layer of encoder. Returns: float Tensor of shape [batch_size, seq_length, hidden_size] corresponding to the final hidden of the transformer encoder.

(self)

Source from the content-addressed store, hash-verified

247 return self.pooled_output
248
249 def get_sequence_output(self):
250 """Gets final hidden layer of encoder.
251
252 Returns:
253 float Tensor of shape [batch_size, seq_length, hidden_size] corresponding
254 to the final hidden of the transformer encoder.
255 """
256 return self.sequence_output
257
258 def get_all_encoder_layers(self):
259 return self.all_encoder_layers

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected