提交 d159de11 authored 作者: Benjamin Scellier's avatar Benjamin Scellier 提交者: Nicolas Ballas

file theano/gof/tests/test_types.py

上级 e814414d
from __future__ import absolute_import, print_function, division
import numpy
import numpy as np
import theano
from theano import Op, Apply
......@@ -72,7 +72,7 @@ def test_cdata():
# This should be a passthrough function for vectors
f = theano.function([i], i2, mode=mode)
v = numpy.random.randn(9).astype('float32')
v = np.random.randn(9).astype('float32')
v2 = f(v)
assert (v2 == v).all()
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论