提交 bc0f5867 authored 作者: Frederic's avatar Frederic

Raise exception if the user use untested code

上级 4d9afd30
...@@ -1541,6 +1541,18 @@ class GpuConv(GpuOp): ...@@ -1541,6 +1541,18 @@ class GpuConv(GpuOp):
to enable them. to enable them.
""" """
self.border_mode = border_mode self.border_mode = border_mode
if version != -1:
raise Exception(
"""GpuConv with version!=-1 is disabled as we do not
test it anymore. It probably work, so you probably can
just comment this error and use it. But we want to
make sure you know about that. Also, this Op is pretty
slow and isn't used by default anymore. We strongly
suggest to use GpuCorrMM that is much faster and
implement all the functionality (at a cost of some
extra memory usage). If you can use cuDNN, that is
even better.
""")
self.subsample = subsample self.subsample = subsample
if logical_img_hw is not None: if logical_img_hw is not None:
h, w = logical_img_hw h, w = logical_img_hw
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论