Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
91495d13
Commit
91495d13
authored
Apr 08, 2020
by
Chen Chen
Committed by
A. Unique TensorFlower
Apr 08, 2020
Browse files
Internal change
PiperOrigin-RevId: 305530702
parent
f41682df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/nlp/bert/bert_models.py
official/nlp/bert/bert_models.py
+2
-1
No files found.
official/nlp/bert/bert_models.py
View file @
91495d13
...
...
@@ -121,7 +121,8 @@ def get_transformer_encoder(bert_config,
attention_dropout_rate
=
bert_config
.
attention_probs_dropout_prob
,
)
kwargs
=
dict
(
embedding_cfg
=
embedding_cfg
,
hidden_cfg
=
hidden_cfg
,
num_hidden_instances
=
bert_config
.
num_hidden_layers
,)
num_hidden_instances
=
bert_config
.
num_hidden_layers
,
num_output_classes
=
bert_config
.
hidden_size
)
# Relies on gin configuration to define the Transformer encoder arguments.
return
transformer_encoder_cls
(
**
kwargs
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment