提交 c427a40e authored 作者: Frederic Bastien's avatar Frederic Bastien

'disable use of numpy.clip in perform mode as it don't handle correctly when the…

'disable use of numpy.clip in perform mode as it don't handle correctly when the min is bigger then the max.'
上级 a69d1158
...@@ -2552,7 +2552,9 @@ def pow(a, b): ...@@ -2552,7 +2552,9 @@ def pow(a, b):
"""elementwise power""" """elementwise power"""
# see decorator for function body # see decorator for function body
@_scal_elemwise_with_nfunc('clip', 3, 1) # The numpy.clip don't work correctly when
# the min is bigger then the max
@_scal_elemwise #_with_nfunc('clip', 3, 1)
def clip(x, min, max): def clip(x, min, max):
"""clip x to be between min and max""" """clip x to be between min and max"""
# see decorator for function body # see decorator for function body
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论