提交 758e0c30 authored 作者: Frederic Bastien's avatar Frederic Bastien

pep8

上级 458f1336
...@@ -849,11 +849,12 @@ second dimension ...@@ -849,11 +849,12 @@ second dimension
char = numpy.sctype2char(out_dtype) char = numpy.sctype2char(out_dtype)
sig = char * node.nin + '->' + char * node.nout sig = char * node.nin + '->' + char * node.nout
node.tag.sig = sig node.tag.sig = sig
node.tag.fake_node = Apply(self.scalar_op, node.tag.fake_node = Apply(
[get_scalar_type(dtype=input.type.dtype).make_variable() self.scalar_op,
for input in node.inputs], [get_scalar_type(dtype=input.type.dtype).make_variable()
[get_scalar_type(dtype=output.type.dtype).make_variable() for input in node.inputs],
for output in node.outputs]) [get_scalar_type(dtype=output.type.dtype).make_variable()
for output in node.outputs])
self.scalar_op.prepare_node(node.tag.fake_node, [], []) self.scalar_op.prepare_node(node.tag.fake_node, [], [])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论