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
a9bdee32
Commit
a9bdee32
authored
Jun 19, 2020
by
Chen Chen
Committed by
A. Unique TensorFlower
Jun 19, 2020
Browse files
Internal change
PiperOrigin-RevId: 317336167
parent
58e805e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
official/nlp/configs/encoders.py
official/nlp/configs/encoders.py
+1
-0
No files found.
official/nlp/configs/encoders.py
View file @
a9bdee32
...
@@ -54,6 +54,7 @@ def instantiate_encoder_from_cfg(
...
@@ -54,6 +54,7 @@ def instantiate_encoder_from_cfg(
activation
=
tf_utils
.
get_activation
(
config
.
hidden_activation
),
activation
=
tf_utils
.
get_activation
(
config
.
hidden_activation
),
dropout_rate
=
config
.
dropout_rate
,
dropout_rate
=
config
.
dropout_rate
,
attention_dropout_rate
=
config
.
attention_dropout_rate
,
attention_dropout_rate
=
config
.
attention_dropout_rate
,
sequence_length
=
None
,
max_sequence_length
=
config
.
max_position_embeddings
,
max_sequence_length
=
config
.
max_position_embeddings
,
type_vocab_size
=
config
.
type_vocab_size
,
type_vocab_size
=
config
.
type_vocab_size
,
initializer
=
tf
.
keras
.
initializers
.
TruncatedNormal
(
initializer
=
tf
.
keras
.
initializers
.
TruncatedNormal
(
...
...
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