提交 fa8eab2d authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Revert "Merge pull request #29 from abergeron/shared_pickle"

This reverts commit f6e6cc94, reversing changes made to bad66778.
上级 11ee6cee
...@@ -2,7 +2,7 @@ import numpy ...@@ -2,7 +2,7 @@ import numpy
from nose.plugins.skip import SkipTest from nose.plugins.skip import SkipTest
from theano.sandbox.cuda.var import float32_shared_constructor as f32sc from theano.sandbox.cuda.var import float32_shared_constructor as f32sc
from theano.sandbox.cuda import CudaNdarrayType, cuda_available, cuda_enabled from theano.sandbox.cuda import CudaNdarrayType, cuda_available
import theano import theano
...@@ -17,7 +17,6 @@ def test_shared_pickle(): ...@@ -17,7 +17,6 @@ def test_shared_pickle():
v = numpy.array([1.0, 2.0], dtype='float32') v = numpy.array([1.0, 2.0], dtype='float32')
# This test will always be on the GPU # This test will always be on the GPU
if cuda_enabled:
assert isinstance(g, theano.tensor.basic.TensorVariable) assert isinstance(g, theano.tensor.basic.TensorVariable)
assert isinstance(g.owner, theano.gof.graph.Apply) assert isinstance(g.owner, theano.gof.graph.Apply)
assert isinstance(g.owner.op, theano.sandbox.cuda.HostFromGpu) assert isinstance(g.owner.op, theano.sandbox.cuda.HostFromGpu)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论