提交 17dfaa63 authored 作者: Frederic Bastien's avatar Frederic Bastien

make the cast explicit. It was done implicitly at fct call.

上级 6efef55a
......@@ -32,7 +32,7 @@ else:
def test_shape_i():
x = cuda.ftensor3()
v = numpy.zeros((3,4,5),dtype='float32')
v = cuda.CudaNdarray(numpy.zeros((3,4,5),dtype='float32'))
f = theano.function([x],x.shape[1])
topo = f.maker.env.toposort()
assert len(topo)==1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论