提交 3e4da0dc authored 作者: carriepl's avatar carriepl 提交者: Frederic

Don't restrict 'small' workspace implementation of GradW to v4 and later

上级 a28cb169
......@@ -706,13 +706,6 @@ class GpuDnnConvGradW(DnnBase, COp):
if self.inplace:
self.destroy_map = {0: [2]}
# The small-workspace implementation is only available from CuDNN V4
# onward.
if version() < (4000, 4000):
if self.algo == 'small':
raise RuntimeError("CuDNN's small workspace GradW convolution "
"requires CuDNN v4 or more recent.")
assert self.algo in ['none', 'deterministic', 'fft', 'small',
'guess_once', 'guess_on_shape_change',
'time_once', 'time_on_shape_change']
......
......@@ -544,12 +544,6 @@ class GpuDnnConvGradW(DnnBase):
algo = config.dnn.conv.algo_bwd_filter
self.algo = algo
# The small-workspace implementation is only available from CuDNN V4
# onward.
if version() < 4000 and self.algo == 'small':
raise RuntimeError("CuDNN's small workspace GradW convolution "
"requires CuDNN v4 or more recent.")
assert self.algo in ['none', 'deterministic', 'fft', 'small',
'guess_once', 'guess_on_shape_change',
'time_once', 'time_on_shape_change']
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论