提交 3853bebb 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!1747 fix pylint warnings

Merge pull request !1747 from SJN/master
...@@ -18,8 +18,8 @@ imdb dataset parser. ...@@ -18,8 +18,8 @@ imdb dataset parser.
import os import os
from itertools import chain from itertools import chain
import gensim
import numpy as np import numpy as np
import gensim
class ImdbParser(): class ImdbParser():
......
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
# limitations under the License. # limitations under the License.
# ============================================================================ # ============================================================================
"""thor_layer""" """thor_layer"""
import numpy as np
import mindspore as ms import mindspore as ms
import mindspore.common.dtype as mstype import mindspore.common.dtype as mstype
from mindspore._checkparam import check_bool, twice, check_int_positive from mindspore._checkparam import check_bool, twice, check_int_positive
...@@ -23,7 +25,6 @@ from mindspore.common.tensor import Tensor ...@@ -23,7 +25,6 @@ from mindspore.common.tensor import Tensor
from mindspore.nn.cell import Cell from mindspore.nn.cell import Cell
from mindspore.nn.layer.activation import get_activation from mindspore.nn.layer.activation import get_activation
from mindspore.ops import operations as P from mindspore.ops import operations as P
import numpy as np
C0 = 16 C0 = 16
def caculate_device_shape(matrix_dim, channel, is_A): def caculate_device_shape(matrix_dim, channel, is_A):
......
...@@ -17,6 +17,8 @@ import argparse ...@@ -17,6 +17,8 @@ import argparse
import os import os
import random import random
import numpy as np
from mindspore import Tensor from mindspore import Tensor
from mindspore import context from mindspore import context
from mindspore.communication.management import init from mindspore.communication.management import init
...@@ -28,7 +30,6 @@ from model.model_thor import Model ...@@ -28,7 +30,6 @@ from model.model_thor import Model
from model.resnet import resnet50 from model.resnet import resnet50
from model.thor import THOR from model.thor import THOR
import numpy as np
from config import config from config import config
from crossentropy import CrossEntropy from crossentropy import CrossEntropy
from dataset_imagenet import create_dataset from dataset_imagenet import create_dataset
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册