提交 e74d74c0 authored 作者: Frederic Bastien's avatar Frederic Bastien

flake8

上级 375d0c61
...@@ -1901,7 +1901,6 @@ def local_gpu_elemwise_careduce(node): ...@@ -1901,7 +1901,6 @@ def local_gpu_elemwise_careduce(node):
# operation with some reduction pattern will probably results # operation with some reduction pattern will probably results
# in slow down. # in slow down.
isinstance(node.inputs[0].owner.op.scalar_op, scalar.basic.Sqr)): isinstance(node.inputs[0].owner.op.scalar_op, scalar.basic.Sqr)):
op = node.op
inp = node.inputs[0].owner.inputs[0] inp = node.inputs[0].owner.inputs[0]
props = node.op._props_dict() props = node.op._props_dict()
props["pre_scalar_op"] = scalar.basic.sqr props["pre_scalar_op"] = scalar.basic.sqr
......
...@@ -3094,7 +3094,6 @@ class T_max_and_argmax(unittest.TestCase): ...@@ -3094,7 +3094,6 @@ class T_max_and_argmax(unittest.TestCase):
def test2_float16(self): def test2_float16(self):
data = rand(2, 3).astype("float16") data = rand(2, 3).astype("float16")
n = shared(data) n = shared(data)
mode = get_default_mode().including("local_max_and_argmax", "uncanonicalize")
for (axis, np_axis) in [(-1, -1), (0, 0), (1, 1), (None, None), for (axis, np_axis) in [(-1, -1), (0, 0), (1, 1), (None, None),
([0, 1], None), ([1, 0], None), ([0, 1], None), ([1, 0], None),
(NoneConst.clone(), None), (NoneConst.clone(), None),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论