提交 d0e01971 authored 作者: sebastien-j's avatar sebastien-j

Add mode.check_py = False

上级 2f612611
...@@ -189,7 +189,9 @@ class TestConv3dFFT(unittest.TestCase): ...@@ -189,7 +189,9 @@ class TestConv3dFFT(unittest.TestCase):
conv_fft = conv_fft.dimshuffle(0, 2, 3, 4, 1) conv_fft = conv_fft.dimshuffle(0, 2, 3, 4, 1)
f_ref = theano.function([], conv_ref) f_ref = theano.function([], conv_ref)
f_fft = theano.function([], conv_fft, mode=mode_with_gpu) mode = mode_with_gpu
mode.check_py = False
f_fft = theano.function([], conv_fft, mode=mode)
res_ref = f_ref() res_ref = f_ref()
res_fft = f_fft() res_fft = f_fft()
...@@ -252,6 +254,7 @@ class TestConv3dFFT(unittest.TestCase): ...@@ -252,6 +254,7 @@ class TestConv3dFFT(unittest.TestCase):
conv = theano.tensor.nnet.conv3D(V=inputs, W=filters, conv = theano.tensor.nnet.conv3D(V=inputs, W=filters,
b=bias, d=(1,1,1)) b=bias, d=(1,1,1))
mode = mode_with_gpu.including('conv3d_fft') mode = mode_with_gpu.including('conv3d_fft')
mode.check_py = False
f_ref = theano.function([], conv) f_ref = theano.function([], conv)
f_fft = theano.function([], conv, mode=mode) f_fft = theano.function([], conv, mode=mode)
...@@ -282,6 +285,7 @@ class TestConv3dFFT(unittest.TestCase): ...@@ -282,6 +285,7 @@ class TestConv3dFFT(unittest.TestCase):
WShape=filters_shape, WShape=filters_shape,
d=(1,1,1)) d=(1,1,1))
mode = mode_with_gpu.including('convgrad3d_fft') mode = mode_with_gpu.including('convgrad3d_fft')
mode.check_py = False
f_ref = theano.function([], conv) f_ref = theano.function([], conv)
f_fft = theano.function([], conv, mode=mode) f_fft = theano.function([], conv, mode=mode)
......
...@@ -172,6 +172,7 @@ class TestCorr3DMM(unittest.TestCase): ...@@ -172,6 +172,7 @@ class TestCorr3DMM(unittest.TestCase):
conv = theano.tensor.nnet.conv3D(V=inputs, W=filters, conv = theano.tensor.nnet.conv3D(V=inputs, W=filters,
b=bias, d=(1, 1, 1)) b=bias, d=(1, 1, 1))
mode = mode_with_gpu.including('conv3d_gemm') mode = mode_with_gpu.including('conv3d_gemm')
mode.check_py = False
f_ref = theano.function([], conv) f_ref = theano.function([], conv)
f_gemm = theano.function([], conv, mode=mode) f_gemm = theano.function([], conv, mode=mode)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论