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

Who decided it was a good idea to bypass the superclass constructor?!?!?

上级 dcd7ee0d
...@@ -1009,23 +1009,20 @@ class T_subtensor(theano.tensor.tests.test_subtensor.T_subtensor): ...@@ -1009,23 +1009,20 @@ class T_subtensor(theano.tensor.tests.test_subtensor.T_subtensor):
def shortDescription(self): def shortDescription(self):
return None return None
shared = staticmethod(cuda.shared_constructor)
sub = cuda.GpuSubtensor
inc_sub = cuda.GpuIncSubtensor
adv_sub1 = cuda.GpuAdvancedSubtensor1
adv_incsub1 = cuda.GpuAdvancedIncSubtensor1
dimshuffle = cuda.GpuDimShuffle
mode = mode_with_gpu
dtype = 'float32'
type = tcn.CudaNdarrayType
ignore_topo = (B.HostFromGpu, B.GpuFromHost, theano.compile.DeepCopyOp)
fast_compile = False
ops = (cuda.GpuSubtensor, cuda.GpuIncSubtensor,
cuda.GpuAdvancedSubtensor1, cuda.GpuAdvancedIncSubtensor1)
def __init__(self, name): def __init__(self, name):
return super(theano.tensor.tests.test_subtensor.T_subtensor, super(T_subtensor, self).__init__(
self).__init__(name) name,
shared=cuda.shared_constructor,
sub=cuda.GpuSubtensor,
inc_sub=cuda.GpuIncSubtensor,
adv_sub1=cuda.GpuAdvancedSubtensor1,
adv_incsub1=cuda.GpuAdvancedIncSubtensor1,
dimshuffle=cuda.GpuDimShuffle,
mode=mode_with_gpu,
dtype='float32',
type=tcn.CudaNdarrayType,
ignore_topo=(B.HostFromGpu, B.GpuFromHost, theano.compile.DeepCopyOp))
self.fast_compile = False
def test_adv_sub1_fast(self): def test_adv_sub1_fast(self):
"""We check that the special cases of advanced indexing that """We check that the special cases of advanced indexing that
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论