提交 c369d787 authored 作者: Benjamin Scellier's avatar Benjamin Scellier 提交者: Nicolas Ballas

file theano/gof/graph.py

上级 b59c48b7
...@@ -481,12 +481,12 @@ class Variable(Node): ...@@ -481,12 +481,12 @@ class Variable(Node):
Examples Examples
-------- --------
>>> import numpy >>> import numpy as np
>>> import theano.tensor as T >>> import theano.tensor as T
>>> x = T.dscalar('x') >>> x = T.dscalar('x')
>>> y = T.dscalar('y') >>> y = T.dscalar('y')
>>> z = x + y >>> z = x + y
>>> numpy.allclose(z.eval({x : 16.3, y : 12.1}), 28.4) >>> np.allclose(z.eval({x : 16.3, y : 12.1}), 28.4)
True True
We passed :func:`eval` a dictionary mapping symbolic theano We passed :func:`eval` a dictionary mapping symbolic theano
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论