提交 9d9c8a87 authored 作者: Chiheb Trabelsi's avatar Chiheb Trabelsi

Functions parameters have been modified in pool.py for coherence purposes.…

Functions parameters have been modified in pool.py for coherence purposes. Deprecation warnings and exceptions have been added in order to deal with all possible scenarios.
上级 61cd924c
...@@ -970,7 +970,7 @@ class PoolGrad(OpenMPOp): ...@@ -970,7 +970,7 @@ class PoolGrad(OpenMPOp):
stride = st stride = st
if padding is not None: if padding is not None:
if pad is not (0, 0): if pad is not None:
raise Exception( raise Exception(
"You can't provide a tuple value to both 'padding' and pad." "You can't provide a tuple value to both 'padding' and pad."
" Please provide a value only to pad." " Please provide a value only to pad."
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论