提交 9611e48f authored 作者: Frederic's avatar Frederic 提交者: Arnaud Bergeron

Make the example force double to work what ever is floatX. This example is…

Make the example force double to work what ever is floatX. This example is before we talk about floatX. fix gh-3240
上级 50d5f651
...@@ -500,8 +500,8 @@ It will be used repeatedly. ...@@ -500,8 +500,8 @@ It will be used repeatedly.
training_steps = 10000 training_steps = 10000
# Declare Theano symbolic variables # Declare Theano symbolic variables
x = T.matrix("x") x = T.dmatrix("x")
y = T.vector("y") y = T.dvector("y")
w = theano.shared(rng.randn(feats), name="w") w = theano.shared(rng.randn(feats), name="w")
b = theano.shared(0., name="b") b = theano.shared(0., name="b")
print "Initial model:" print "Initial model:"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论