提交 c79e0cfd authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Flake8 fix.

上级 0b5ee2f1
......@@ -6,7 +6,6 @@ from theano.gof.opt import * # noqa
from theano.gof.fg import FunctionGraph as Env
from theano.gof.toolbox import * # noqa
from theano.tensor.opt import Assert
from theano import tensor as T
......
......@@ -288,7 +288,7 @@ class PycudaElemwiseSourceModuleMakeThunkOp(Op):
# As we have a dict in props, we need to implement __hash__
def __hash__(self):
return hash(type(self), hash(self.scalar_op),
hash_from_dict(self.inplace_pattern))
hash_from_dict(self.inplace_pattern))
def __str__(self):
if self.name is None:
......
......@@ -205,18 +205,6 @@ whitelist_flake8 = [
"sparse/sandbox/sp.py",
"gof/unify.py",
"gof/__init__.py",
"gof/tests/test_cmodule.py",
"gof/tests/test_destroyhandler.py",
"gof/tests/test_opt.py",
"gof/tests/test_lazy.py",
"gof/tests/test_toolbox.py",
"gof/tests/test_link.py",
"gof/tests/test_fg.py",
"gof/tests/test_sched.py",
"gof/tests/test_graph_opt_caching.py",
"gof/tests/test_graph.py",
"gof/tests/test_cc.py",
"gof/tests/test_compute_test_value.py",
"gof/sandbox/equilibrium.py",
]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论