"git@developer.sourcefind.cn:chenzk/alphafold2_jax.git" did not exist on "c9ffb0bc187077602c1940269612fa8df1674fbf"
Commit 02ac5f36 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 321720155
parent 062f044d
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment