提交 4424a681 authored 作者: Benjamin Scellier's avatar Benjamin Scellier

file theano/misc/tests/test_may_share_memory.py

上级 2d10be5b
...@@ -3,7 +3,7 @@ test the tensor and sparse type. The CudaNdarray type is tested in ...@@ -3,7 +3,7 @@ test the tensor and sparse type. The CudaNdarray type is tested in
sandbox/cuda/tests/test_tensor_op.py.test_may_share_memory_cuda sandbox/cuda/tests/test_tensor_op.py.test_may_share_memory_cuda
""" """
from __future__ import absolute_import, print_function, division from __future__ import absolute_import, print_function, division
import numpy import numpy as np
import theano import theano
try: try:
...@@ -16,8 +16,8 @@ from theano.misc.may_share_memory import may_share_memory ...@@ -16,8 +16,8 @@ from theano.misc.may_share_memory import may_share_memory
def test_may_share_memory(): def test_may_share_memory():
a = numpy.random.rand(5, 4) a = np.random.rand(5, 4)
b = numpy.random.rand(5, 4) b = np.random.rand(5, 4)
va = a.view() va = a.view()
vb = b.view() vb = b.view()
ra = a.reshape((4, 5)) ra = a.reshape((4, 5))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论