提交 23ba79b1 编写于 作者: Q qiaolongfei

fix typo

上级 de469d58
...@@ -49,10 +49,8 @@ class TestPythonOperatorOverride(unittest.TestCase): ...@@ -49,10 +49,8 @@ class TestPythonOperatorOverride(unittest.TestCase):
# compare func to check # compare func to check
compare_fns = [ compare_fns = [
lambda _a, _b: _a == _b, lambda _a, _b: _a == _b,
lambda _a, _b: _a == _b,
lambda _a, _b: _a < _b,
lambda _a, _b: _a < _b, lambda _a, _b: _a < _b,
lambda _a, _b: _a <= _b, lambda _a, _b: _a > _b,
lambda _a, _b: _a <= _b, lambda _a, _b: _a <= _b,
lambda _a, _b: _a >= _b, lambda _a, _b: _a >= _b,
] ]
...@@ -69,7 +67,7 @@ class TestPythonOperatorOverride(unittest.TestCase): ...@@ -69,7 +67,7 @@ class TestPythonOperatorOverride(unittest.TestCase):
for dtype in dtypes: for dtype in dtypes:
for compare_fn in compare_fns: for compare_fn in compare_fns:
with framework.program_guard(framework.Program(), with framework.program_guard(framework.Program(),
gframework.Program()): framework.Program()):
self.check_result(compare_fn, place, dtype) self.check_result(compare_fn, place, dtype)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册