pylint clean

This commit is contained in:
“liuxiao” 2020-05-26 19:46:14 +08:00
parent ebbccca78b
commit 73a287e5e0
2 changed files with 1 additions and 3 deletions

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)

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