提交 bedd4529 authored 作者: Frederic's avatar Frederic

Print more cleary the inputs/outputs.

There was a confusion by a user.
上级 d7ad744d
......@@ -230,10 +230,10 @@ shows how to print all inputs and outputs:
import theano
def inspect_inputs(i, node, fn):
print i, node, [input[0] for input in fn.inputs],
print i, node, "input(s) value(s):", [input[0] for input in fn.inputs],
def inspect_outputs(i, node, fn):
print [output[0] for output in fn.outputs]
print "output(s) value(s):", [output[0] for output in fn.outputs]
x = theano.tensor.dscalar('x')
f = theano.function([x], [5 * x],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论