pylint clean

This commit is contained in:
“liuxiao” 2020-05-26 19:11:12 +08:00
parent 382a0124c3
commit f4542f810b
12 changed files with 17 additions and 13 deletions

View File

@ -60,5 +60,5 @@ def test_SoftmaxCrossEntropyExpand():
loss = nn.SoftmaxCrossEntropyExpand()
logits = Tensor(np.random.randint(0, 9, [100, 10]).astype(np.float32))
labels = Tensor(np.random.randint(0, 9, [10,]).astype(np.float32))
labels = Tensor(np.random.randint(0, 9, [10, ]).astype(np.float32))
_executor.compile(loss, logits, labels)

View File

@ -17,7 +17,9 @@ import numpy as np
import os
import pytest
import stat
import time
import mindspore.common.dtype as mstype
import mindspore.nn as nn
from mindspore import context
from mindspore.common.parameter import Parameter

View File

@ -17,6 +17,7 @@ import numpy as np
from mobilenetv2_combined import MobileNetV2
import mindspore.context as context
import mindspore.ops.operations as P
from mindspore import Tensor
from mindspore import nn
from mindspore.nn.layer import combined

View File

@ -14,8 +14,8 @@
# ============================================================================
""" test_graph_summary """
import logging
import numpy as np
import os
import numpy as np
import mindspore.nn as nn
from mindspore import Model, context

View File

@ -15,9 +15,9 @@
"""Test histogram summary."""
import logging
import numpy as np
import os
import tempfile
import numpy as np
from mindspore.common.tensor import Tensor
from mindspore.train.summary._summary_adapter import _calc_histogram_bins

View File

@ -19,8 +19,8 @@
@Desc : test summary function
"""
import logging
import numpy as np
import os
import numpy as np
import mindspore.nn as nn
from mindspore import Model, context

View File

@ -19,10 +19,11 @@
@Desc : test summary function
"""
import logging
import numpy as np
import os
import pytest
import random
import numpy as np
import pytest
import mindspore.nn as nn
from mindspore.common.tensor import Tensor

View File

@ -19,8 +19,8 @@
@Desc : test summary function of abnormal input
"""
import logging
import numpy as np
import os
import numpy as np
from mindspore.common.tensor import Tensor
from mindspore.train.summary.summary_record import SummaryRecord

View File

@ -19,8 +19,8 @@
@Desc : test summary function
"""
import logging
import numpy as np
import os
import numpy as np
import mindspore.nn as nn
from mindspore.common.tensor import Tensor

View File

@ -13,10 +13,10 @@
# limitations under the License.
# ============================================================================
"""test callback function."""
import numpy as np
import os
import pytest
import stat
import numpy as np
import pytest
import mindspore.common.dtype as mstype
import mindspore.nn as nn

View File

@ -14,9 +14,9 @@
# ============================================================================
""" test_initializer """
import math
from functools import reduce
import numpy as np
import pytest as py
from functools import reduce
from scipy import stats
import mindspore as ms

View File

@ -13,11 +13,11 @@
# limitations under the License.
# ============================================================================
"""ut for model serialize(save/load)"""
import numpy as np
import os
import pytest
import stat
import time
import pytest
import numpy as np
import mindspore.common.dtype as mstype
import mindspore.nn as nn