提交 f35669b5 authored 作者: Chienli Ma(马千里)'s avatar Chienli Ma(马千里)

pep-8 style fix

1.delete unused import 2.fix indentation
上级 4cbfea77
...@@ -4,7 +4,7 @@ from theano.compat import izip ...@@ -4,7 +4,7 @@ from theano.compat import izip
from theano.compile.function_module import orig_function from theano.compile.function_module import orig_function
from theano.compile import SharedVariable, rebuild_collect_shared from theano.compile import SharedVariable, rebuild_collect_shared
from theano.gof import ops_with_inner_function from theano.gof import ops_with_inner_function
from theano.gof.graph import io_connection_pattern, clone_get_equiv from theano.gof.graph import io_connection_pattern
class OpFromGraph(gof.Op): class OpFromGraph(gof.Op):
...@@ -143,8 +143,8 @@ class OpFromGraph(gof.Op): ...@@ -143,8 +143,8 @@ class OpFromGraph(gof.Op):
def infer_shape(self, node, shapes): def infer_shape(self, node, shapes):
out_shp = theano.scan_module.scan_utils.infer_shape(self.new_outputs, out_shp = theano.scan_module.scan_utils.infer_shape(self.new_outputs,
self.new_inputs, self.new_inputs,
shapes) shapes)
replacement = dict([(ori, rpl) for ori, rpl replacement = dict([(ori, rpl) for ori, rpl
in izip(self.new_inputs, node.inputs)]) in izip(self.new_inputs, node.inputs)])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论