提交 d0bb9a22 authored 作者: Iban Harlouchet's avatar Iban Harlouchet

flake8 for tensor/inplace.py

上级 453ad8f1
...@@ -28,7 +28,6 @@ def _scal_inplace(symbol): ...@@ -28,7 +28,6 @@ def _scal_inplace(symbol):
def chk(pstate, r): def chk(pstate, r):
if not r.owner: if not r.owner:
return False return False
op = r.owner.op
return r.owner.op == rval return r.owner.op == rval
pprint.assign(chk, printing.FunctionPrinter(symbolname.replace('_inplace', '='))) pprint.assign(chk, printing.FunctionPrinter(symbolname.replace('_inplace', '=')))
......
...@@ -57,7 +57,6 @@ whitelist_flake8 = [ ...@@ -57,7 +57,6 @@ whitelist_flake8 = [
"typed_list/tests/test_type.py", "typed_list/tests/test_type.py",
"typed_list/tests/test_opt.py", "typed_list/tests/test_opt.py",
"typed_list/tests/test_basic.py", "typed_list/tests/test_basic.py",
"tensor/inplace.py",
"tensor/slinalg.py", "tensor/slinalg.py",
"tensor/shared_randomstreams.py", "tensor/shared_randomstreams.py",
"tensor/subtensor.py", "tensor/subtensor.py",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论