forked from mindspore-Ecosystem/mindspore
pylint clean
This commit is contained in:
parent
ebbccca78b
commit
73a287e5e0
|
@ -45,7 +45,6 @@ class Net(nn.Cell):
|
||||||
@non_graph_engine
|
@non_graph_engine
|
||||||
def test_AssignAdd_1():
|
def test_AssignAdd_1():
|
||||||
"""test AssignAdd 1"""
|
"""test AssignAdd 1"""
|
||||||
import mindspore.context as context
|
|
||||||
context.set_context(mode=context.GRAPH_MODE)
|
context.set_context(mode=context.GRAPH_MODE)
|
||||||
net = Net()
|
net = Net()
|
||||||
x = Tensor(np.ones([1]).astype(np.int64) * 100)
|
x = Tensor(np.ones([1]).astype(np.int64) * 100)
|
||||||
|
@ -65,7 +64,6 @@ def test_AssignAdd_1():
|
||||||
@non_graph_engine
|
@non_graph_engine
|
||||||
def test_AssignAdd_2():
|
def test_AssignAdd_2():
|
||||||
"""test AssignAdd 2"""
|
"""test AssignAdd 2"""
|
||||||
import mindspore.context as context
|
|
||||||
context.set_context(mode=context.GRAPH_MODE)
|
context.set_context(mode=context.GRAPH_MODE)
|
||||||
net = Net()
|
net = Net()
|
||||||
x = Tensor(np.ones([1]).astype(np.int64) * 102)
|
x = Tensor(np.ones([1]).astype(np.int64) * 102)
|
||||||
|
|
|
@ -13,9 +13,9 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
"""test_dtype"""
|
"""test_dtype"""
|
||||||
|
from dataclasses import dataclass
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
from dataclasses import dataclass
|
|
||||||
|
|
||||||
import mindspore as ms
|
import mindspore as ms
|
||||||
from mindspore.common import dtype
|
from mindspore.common import dtype
|
||||||
|
|
Loading…
Reference in New Issue