Modify the importing path of BERT after its src has been moved.

Fix an error.
This commit is contained in:
yvetteliu 2020-05-28 15:23:28 +08:00
parent 610eddba1b
commit 9b0aa3eb4a
1 changed files with 1 additions and 2 deletions

View File

@ -22,8 +22,7 @@ import os
import mindspore.common.dtype as mstype
import mindspore.context as context
from mindspore import Tensor
from mindspore.model_zoo.Bert_NEZHA import BertConfig, BertNetworkWithLoss, BertTrainOneStepCell, \
BertTrainOneStepWithLossScaleCell
from model_zoo.bert.src import BertConfig, BertNetworkWithLoss, BertTrainOneStepCell, BertTrainOneStepWithLossScaleCell
from mindspore.nn.optim import AdamWeightDecayDynamicLR
from mindspore.train.loss_scale_manager import DynamicLossScaleManager
from ...dataset_mock import MindData