From cd92380b498b5a630cdd3e5eaeae60db89e0ca71 Mon Sep 17 00:00:00 2001 From: mwang Date: Sun, 27 Dec 2020 18:57:49 +0800 Subject: [PATCH] remove default word --- model_zoo/official/nlp/bert_thor/mindspore_hub_conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model_zoo/official/nlp/bert_thor/mindspore_hub_conf.py b/model_zoo/official/nlp/bert_thor/mindspore_hub_conf.py index 743cc4cbe92..05672d3f2e0 100644 --- a/model_zoo/official/nlp/bert_thor/mindspore_hub_conf.py +++ b/model_zoo/official/nlp/bert_thor/mindspore_hub_conf.py @@ -44,6 +44,6 @@ def create_network(name, *args, **kwargs): Create bert network for bert_thor. ''' if name == 'bert_thor': - is_training = kwargs.get("is_training", default=False) + is_training = kwargs.get("is_training", False) return BertModel(bert_net_cfg, is_training, *args) raise NotImplementedError(f"{name} is not implemented in the repo")