提交 d4536763 authored 作者: notoraptor's avatar notoraptor

Make warning message less redundant.

上级 fdf643c0
...@@ -724,8 +724,7 @@ class GpuDnnConvGradW(DnnBase): ...@@ -724,8 +724,7 @@ class GpuDnnConvGradW(DnnBase):
warnings.warn('cuDNN backward filter operation for 3D convolutions may produce bad results ' warnings.warn('cuDNN backward filter operation for 3D convolutions may produce bad results '
'with certain cuDNN algorithms depending on the compute capability of your GPU ' 'with certain cuDNN algorithms depending on the compute capability of your GPU '
'if subsample is not (1, 1, 1). If you encounter problems, consider ' 'if subsample is not (1, 1, 1). If you encounter problems, consider '
'setting the theano flag "dnn.conv.algo_bwd_filter" to "none" ' 'setting the theano flag "dnn.conv.algo_bwd_filter" to "none".')
'(dnn.conv.algo_bwd_filter=none)')
ctx_name = infer_context_name(img, topgrad, output) ctx_name = infer_context_name(img, topgrad, output)
img = as_gpuarray_variable(img, ctx_name) img = as_gpuarray_variable(img, ctx_name)
topgrad = as_gpuarray_variable(topgrad, ctx_name) topgrad = as_gpuarray_variable(topgrad, ctx_name)
......
...@@ -793,8 +793,7 @@ class GpuDnnConv3dGradW(GpuDnnConvGradW): ...@@ -793,8 +793,7 @@ class GpuDnnConv3dGradW(GpuDnnConvGradW):
warnings.warn('cuDNN backward filter operation for 3D convolutions may produce bad results ' warnings.warn('cuDNN backward filter operation for 3D convolutions may produce bad results '
'with certain cuDNN algorithms depending on the compute capability of your GPU ' 'with certain cuDNN algorithms depending on the compute capability of your GPU '
'if subsample is not (1, 1, 1). If you encounter problems, consider ' 'if subsample is not (1, 1, 1). If you encounter problems, consider '
'setting the theano flag "dnn.conv.algo_bwd_filter" to "none" ' 'setting the theano flag "dnn.conv.algo_bwd_filter" to "none".')
'(dnn.conv.algo_bwd_filter=none)')
img = as_cuda_ndarray_variable(img) img = as_cuda_ndarray_variable(img)
topgrad = as_cuda_ndarray_variable(topgrad) topgrad = as_cuda_ndarray_variable(topgrad)
output = as_cuda_ndarray_variable(output) output = as_cuda_ndarray_variable(output)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论