提交 6cbfa5ba authored 作者: Frederic Bastien's avatar Frederic Bastien

Add deprecation warning.

上级 90eec589
......@@ -5112,6 +5112,9 @@ def flatten(x, ndim=None, outdim=None):
elif outdim is not None and ndim is not None:
raise ValueError("You should only specify outdim or ndim")
elif outdim is not None:
warnings.warn(
"flatten outdim parmaeter is deprecated, use ndim instead.")
ndim = outdim
# Any input variable can be flattened to have ndim of 1,
# even if it's a scalar. Otherwise, ndim must be positive
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论