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

Make flake8 stop complaining about __init__.py (which will keep having errors).

上级 5ef9fec9
...@@ -41,25 +41,25 @@ from theano.configdefaults import config ...@@ -41,25 +41,25 @@ from theano.configdefaults import config
# Version information. # Version information.
from theano.version import version as __version__ from theano.version import version as __version__
from theano.gof import \ from theano.gof import (
CLinker, OpWiseCLinker, DualLinker, Linker, LocalLinker, PerformLinker, \ CLinker, OpWiseCLinker, DualLinker, Linker, LocalLinker, PerformLinker,
Container, \ Container,
InconsistencyError, FunctionGraph, \ InconsistencyError, FunctionGraph,
Apply, Variable, Constant, \ Apply, Variable, Constant,
Op, OpenMPOp, \ Op, OpenMPOp,
opt, \ opt,
toolbox, \ toolbox,
Type, Generic, generic, \ Type, Generic, generic,
object2, utils object2, utils)
from theano.compile import \ from theano.compile import (
SymbolicInput, In, \ SymbolicInput, In,
SymbolicOutput, Out, \ SymbolicOutput, Out,
Mode, \ Mode,
predefined_modes, predefined_linkers, predefined_optimizers, \ predefined_modes, predefined_linkers, predefined_optimizers,
FunctionMaker, function, function_dump, OpFromGraph, \ FunctionMaker, function, function_dump, OpFromGraph,
ProfileMode, ProfileStats, \ ProfileMode, ProfileStats,
Param, shared, as_op Param, shared, as_op)
from theano.misc.safe_asarray import _asarray from theano.misc.safe_asarray import _asarray
...@@ -69,11 +69,15 @@ from theano.scan_module import scan, map, reduce, foldl, foldr, clone ...@@ -69,11 +69,15 @@ from theano.scan_module import scan, map, reduce, foldl, foldr, clone
from theano.updates import OrderedUpdates from theano.updates import OrderedUpdates
# scan_module import above initializes tensor and scalar making these imports redundant # scan_module import above initializes tensor and scalar making these imports
#import tensor # redundant
#import scalar
# import tensor
# import scalar
# we don't import by default as we don't want to force having scipy installed. # we don't import by default as we don't want to force having scipy installed.
#import sparse
# import sparse
from theano.gradient import Rop, Lop, grad, subgraph_grad from theano.gradient import Rop, Lop, grad, subgraph_grad
...@@ -132,8 +136,6 @@ numpy.seterr( ...@@ -132,8 +136,6 @@ numpy.seterr(
invalid=_invalid) invalid=_invalid)
del _all, _divide, _over, _under, _invalid del _all, _divide, _over, _under, _invalid
## import scalar_opt
# This is defined here because it is designed to work across symbolic # This is defined here because it is designed to work across symbolic
# datatypes (Sparse and Tensor) # datatypes (Sparse and Tensor)
...@@ -193,3 +195,5 @@ def sparse_grad(var): ...@@ -193,3 +195,5 @@ def sparse_grad(var):
__import__('theano.tensor.shared_randomstreams') __import__('theano.tensor.shared_randomstreams')
# flake8: noqa
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论