Modify the importing path of BERT after its src has been moved.
Fix an error.
This commit is contained in:
parent
610eddba1b
commit
9b0aa3eb4a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue