提交 963e524e authored 作者: amrithasuresh's avatar amrithasuresh

Updated numpy as np

上级 11fefcee
from __future__ import absolute_import, print_function, division
import numpy
import numpy as np
import theano
class DoubleOp(theano.Op):
......@@ -21,8 +21,8 @@ x = theano.tensor.matrix()
f = theano.function([x], DoubleOp()(x))
inp = numpy.random.rand(5,5)
inp = np.random.rand(5,5)
out = f(inp)
assert numpy.allclose(inp*2, out)
assert np.allclose(inp*2, out)
print(inp)
print(out)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论