Browse Source

pylint clean

tags/v0.5.0-beta
“liuxiao” 5 years ago
parent
commit
73a287e5e0
2 changed files with 1 additions and 3 deletions
  1. +0
    -2
      tests/ut/python/exec/test_AssignAdd.py
  2. +1
    -1
      tests/ut/python/ir/test_dtype.py

+ 0
- 2
tests/ut/python/exec/test_AssignAdd.py View File

@@ -45,7 +45,6 @@ class Net(nn.Cell):
@non_graph_engine
def test_AssignAdd_1():
"""test AssignAdd 1"""
import mindspore.context as context
context.set_context(mode=context.GRAPH_MODE)
net = Net()
x = Tensor(np.ones([1]).astype(np.int64) * 100)
@@ -65,7 +64,6 @@ def test_AssignAdd_1():
@non_graph_engine
def test_AssignAdd_2():
"""test AssignAdd 2"""
import mindspore.context as context
context.set_context(mode=context.GRAPH_MODE)
net = Net()
x = Tensor(np.ones([1]).astype(np.int64) * 102)


+ 1
- 1
tests/ut/python/ir/test_dtype.py View File

@@ -13,9 +13,9 @@
# limitations under the License.
# ============================================================================
"""test_dtype"""
from dataclasses import dataclass
import numpy as np
import pytest
from dataclasses import dataclass

import mindspore as ms
from mindspore.common import dtype


Loading…
Cancel
Save