Browse Source

modify import order

tags/v1.2.0
alouhahaha 5 years ago
parent
commit
d8b38157da
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      model_zoo/official/nlp/gpt/src/utils.py

+ 1
- 1
model_zoo/official/nlp/gpt/src/utils.py View File

@@ -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:


Loading…
Cancel
Save