提交 73a287e5 编写于 作者: “liuxiao”

pylint clean

上级 ebbccca7
......@@ -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)
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册