From a5a88a53372ce0f4bfe038c2ee8ba67c4e14eeb6 Mon Sep 17 00:00:00 2001 From: alouhahaha Date: Tue, 30 Mar 2021 08:56:43 +0800 Subject: [PATCH] modify import order --- model_zoo/official/nlp/gpt/src/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model_zoo/official/nlp/gpt/src/utils.py b/model_zoo/official/nlp/gpt/src/utils.py index ae8a91932a..09560b2e00 100644 --- a/model_zoo/official/nlp/gpt/src/utils.py +++ b/model_zoo/official/nlp/gpt/src/utils.py @@ -17,6 +17,7 @@ network config setting, gradient clip function and dynamic learning rate function """ +import numpy as np import mindspore.nn as nn from mindspore.ops import operations as P from mindspore.ops import composite as C @@ -24,7 +25,6 @@ from mindspore.ops import functional as F import mindspore.common.dtype as mstype from mindspore.common.tensor import Tensor from mindspore.nn.learning_rate_schedule import LearningRateSchedule, PolynomialDecayLR, WarmUpLR, CosineDecayLR -import numpy as np class GPTConfig: