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
92ea3959
Commit
92ea3959
authored
Aug 17, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Aug 17, 2020
Browse files
Fix unit test model config, we need to use kwargs to make dataclass correct.
PiperOrigin-RevId: 327139660
parent
8da48573
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/nlp/tasks/masked_lm_test.py
official/nlp/tasks/masked_lm_test.py
+1
-1
No files found.
official/nlp/tasks/masked_lm_test.py
View file @
92ea3959
...
@@ -29,7 +29,7 @@ class MLMTaskTest(tf.test.TestCase):
...
@@ -29,7 +29,7 @@ class MLMTaskTest(tf.test.TestCase):
config
=
masked_lm
.
MaskedLMConfig
(
config
=
masked_lm
.
MaskedLMConfig
(
init_checkpoint
=
self
.
get_temp_dir
(),
init_checkpoint
=
self
.
get_temp_dir
(),
model
=
bert
.
PretrainerConfig
(
model
=
bert
.
PretrainerConfig
(
encoders
.
EncoderConfig
(
encoder
=
encoders
.
EncoderConfig
(
bert
=
encoders
.
BertEncoderConfig
(
vocab_size
=
30522
,
bert
=
encoders
.
BertEncoderConfig
(
vocab_size
=
30522
,
num_layers
=
1
)),
num_layers
=
1
)),
cls_heads
=
[
cls_heads
=
[
...
...
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