MCPcopy Create free account
hub / github.com/brightmart/bert_language_understanding / encoder_fn

Method encoder_fn

model/encoder.py:31–45  ·  view source on GitHub ↗

use transformer encoder to encode the input, output a sequence. input: [batch_size,sequence_length,d_embedding] :return: output:[batch_size*sequence_length,d_model]

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

inferenceMethod · 0.95
inference_lmMethod · 0.95
inferenceMethod · 0.95
testFunction · 0.80

Calls 1

encoder_single_layerMethod · 0.95

Tested by

no test coverage detected