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

overall flake8 on branch flake8_v2, 4 E corrected

上级 cc55e67c
...@@ -266,7 +266,7 @@ SOMEPATH/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/system_in ...@@ -266,7 +266,7 @@ SOMEPATH/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/system_in
# Using "conda install mkl" will install both, as well as # Using "conda install mkl" will install both, as well as
# optimized versions of numpy and scipy. # optimized versions of numpy and scipy.
try: try:
import mkl import mkl #noqa
except ImportError as e: except ImportError as e:
_logger.info('Conda mkl is not available: %s', e) _logger.info('Conda mkl is not available: %s', e)
else: else:
...@@ -1599,11 +1599,11 @@ class GemmOptimizer(Optimizer): ...@@ -1599,11 +1599,11 @@ class GemmOptimizer(Optimizer):
) )
did_something = True did_something = True
nb_replacement += 1 nb_replacement += 1
except InconsistencyError as e: except InconsistencyError:
# TODO: retry other applications of gemm (see comment # TODO: retry other applications of gemm (see comment
# in _gemm_from_node) # in _gemm_from_node)
nb_inconsistency_replace += 1 nb_inconsistency_replace += 1
except ReplacementDidntRemovedError as e: except ReplacementDidntRemovedError:
nb_replacement_didn_t_remove += 1 nb_replacement_didn_t_remove += 1
self.warned = True self.warned = True
fgraph.remove_feature(u) fgraph.remove_feature(u)
......
...@@ -66,7 +66,6 @@ class _tensor_py_operators: ...@@ -66,7 +66,6 @@ class _tensor_py_operators:
rval._is_nonzero = False rval._is_nonzero = False
return rval return rval
def __nonzero__(self): def __nonzero__(self):
# Python 2.x # Python 2.x
return self.__bool__() return self.__bool__()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论