提交 5c4ffc5b authored 作者: James Bergstra's avatar James Bergstra

Updated randomstreams rst documentation to describe shared variable version

上级 a7310185
......@@ -24,8 +24,8 @@ Here's a brief example. The setup code is:
from theano.tensor.shared_randomstreams import RandomStreams
srng = RandomStreams(seed=234)
rv_u = srng.random.uniform((2,2))
rv_n = srng.random.normal((2,2))
rv_u = srng.uniform((2,2))
rv_n = srng.normal((2,2))
f = function([], rv_u, updates=[rv_u.update])
g = function([], rv_n) #omitting rv_n.update
nearly_zeros = function([], rv_u + rv_u - 2 * rv_u, updates=[rv_u.update])
......@@ -111,7 +111,6 @@ For example:
>>> v2 = f() # v2 != v1
.. _Tools: tools.html
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论