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
bf069622
Commit
bf069622
authored
Jul 16, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 321720155
parent
0069c932
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
official/nlp/tasks/masked_lm.py
official/nlp/tasks/masked_lm.py
+3
-2
No files found.
official/nlp/tasks/masked_lm.py
View file @
bf069622
...
...
@@ -40,8 +40,9 @@ class MaskedLMConfig(cfg.TaskConfig):
class
MaskedLMTask
(
base_task
.
Task
):
"""Mock task object for testing."""
def
build_model
(
self
):
return
bert
.
instantiate_pretrainer_from_cfg
(
self
.
task_config
.
model
)
def
build_model
(
self
,
params
=
None
):
params
=
params
or
self
.
task_config
.
model
return
bert
.
instantiate_pretrainer_from_cfg
(
params
)
def
build_losses
(
self
,
labels
,
...
...
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