提交 3a631ab8 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

changed implementation of square based on @nouiz's comment on my

original PR
上级 7f4f7396
......@@ -2656,10 +2656,9 @@ def round_half_away_from_zero(a):
def sqr(a):
"""square of a"""
#alias to sqr, included to maintain similarity with numpy interface
def square(a):
"""square of a"""
return sqr(a)
square = sqr
@_scal_elemwise_with_nfunc('sqrt', 1, 1)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论