提交 4799de77 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Revert e86e35ad894f not what numpy+floatX is not the default

上级 9fd13114
......@@ -558,11 +558,7 @@ def test_sparse_shared_memory():
y = SparseType('csr', dtype='float32')()
sdot = theano.sparse.structured_dot
# We use typed float32 constants to make sure there will be no upcasting,
# regardless of config.cast_policy.
fthree = tensor.constant(3, dtype='float32')
ftwo = tensor.constant(2, dtype='float32')
z = sdot(x*fthree,m1) + sdot(y*ftwo, m2)
z = sdot(x*3,m1) + sdot(y*2, m2)
f = theano.function([theano.In(x,mutable=True),theano.In(y,mutable = True)],z, mode='FAST_RUN')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论