提交 978386b8 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed warning in doc example

Fixes gh-1306
上级 66bef2c4
...@@ -489,7 +489,7 @@ The preceding elements are featured in this more realistic example. It will be ...@@ -489,7 +489,7 @@ The preceding elements are featured in this more realistic example. It will be
train = theano.function( train = theano.function(
inputs=[x,y], inputs=[x,y],
outputs=[prediction, xent], outputs=[prediction, xent],
updates={w: w - 0.1 * gw, b: b - 0.1 * gb}) updates=((w, w - 0.1 * gw), (b, b - 0.1 * gb)))
predict = theano.function(inputs=[x], outputs=prediction) predict = theano.function(inputs=[x], outputs=prediction)
# Train # Train
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论