Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
5d164968
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
5d164968
编写于
8月 30, 2023
作者:
N
Nyakku Shigure
提交者:
GitHub
8月 30, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[docs] fix api labels in math.py (#56682)
上级
c5786be1
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
10 addition
and
10 deletion
+10
-10
python/paddle/tensor/math.py
python/paddle/tensor/math.py
+10
-10
未找到文件。
python/paddle/tensor/math.py
浏览文件 @
5d164968
...
...
@@ -435,7 +435,7 @@ def multiplex(inputs, index, name=None):
def
scale_
(
x
,
scale
=
1.0
,
bias
=
0.0
,
bias_after_scale
=
True
,
act
=
None
,
name
=
None
):
"""
Inplace version of ``scale`` API, the output Tensor will be inplaced with input ``x``.
Please refer to :ref:`api_
tensor
_scale`.
Please refer to :ref:`api_
paddle
_scale`.
"""
if
in_dynamic_mode
():
return
_C_ops
.
scale_
(
x
,
scale
,
float
(
bias
),
bias_after_scale
)
...
...
@@ -685,7 +685,7 @@ def add(x, y, name=None):
def
add_
(
x
,
y
,
name
=
None
):
"""
Inplace version of ``add`` API, the output Tensor will be inplaced with input ``x``.
Please refer to :ref:`api_
tensor
_add`.
Please refer to :ref:`api_
paddle
_add`.
"""
out_shape
=
broadcast_shape
(
x
.
shape
,
y
.
shape
)
...
...
@@ -825,7 +825,7 @@ def subtract(x, y, name=None):
def
subtract_
(
x
,
y
,
name
=
None
):
"""
Inplace version of ``subtract`` API, the output Tensor will be inplaced with input ``x``.
Please refer to :ref:`api_
tensor
_subtract`.
Please refer to :ref:`api_
paddle
_subtract`.
"""
out_shape
=
broadcast_shape
(
x
.
shape
,
y
.
shape
)
...
...
@@ -1003,7 +1003,7 @@ def remainder(x, y, name=None):
def
remainder_
(
x
,
y
,
name
=
None
):
r
"""
Inplace version of ``remainder`` API, the output Tensor will be inplaced with input ``x``.
Please refer to :ref:`api_
tensor
_remainder`.
Please refer to :ref:`api_
paddle
_remainder`.
"""
out_shape
=
broadcast_shape
(
x
.
shape
,
y
.
shape
)
if
out_shape
!=
x
.
shape
:
...
...
@@ -1086,7 +1086,7 @@ def multiply(x, y, name=None):
def
multiply_
(
x
,
y
,
name
=
None
):
"""
Inplace version of ``multiply`` API, the output Tensor will be inplaced with input ``x``.
Please refer to :ref:`api_
tensor
_multiply`.
Please refer to :ref:`api_
paddle
_multiply`.
"""
out_shape
=
broadcast_shape
(
x
.
shape
,
y
.
shape
)
...
...
@@ -2287,7 +2287,7 @@ def addmm(input, x, y, beta=1.0, alpha=1.0, name=None):
def
addmm_
(
input
,
x
,
y
,
beta
=
1.0
,
alpha
=
1.0
,
name
=
None
):
"""
Inplace version of ``addmm`` API, the output Tensor will be inplaced with input ``x``.
Please refer to :ref:`api_
label
_addmm`.
Please refer to :ref:`api_
paddle
_addmm`.
"""
input_shape
=
input
.
shape
x_shape
=
x
.
shape
...
...
@@ -3575,7 +3575,7 @@ def clip(x, min=None, max=None, name=None):
def
clip_
(
x
,
min
=
None
,
max
=
None
,
name
=
None
):
"""
Inplace version of ``clip`` API, the output Tensor will be inplaced with input ``x``.
Please refer to :ref:`api_
tensor
_clip`.
Please refer to :ref:`api_
paddle
_clip`.
"""
fmin
=
float
(
np
.
finfo
(
np
.
float32
).
min
)
fmax
=
float
(
np
.
finfo
(
np
.
float32
).
max
)
...
...
@@ -4638,7 +4638,7 @@ def tanh(x, name=None):
def
tanh_
(
x
,
name
=
None
):
r
"""
Inplace version of ``tanh`` API, the output Tensor will be inplaced with input ``x``.
Please refer to :ref:`api_
tensor
_tanh`.
Please refer to :ref:`api_
paddle
_tanh`.
"""
return
_C_ops
.
tanh_
(
x
)
...
...
@@ -5287,7 +5287,7 @@ def lerp(x, y, weight, name=None):
def
lerp_
(
x
,
y
,
weight
,
name
=
None
):
r
"""
Inplace version of ``lerp`` API, the output Tensor will be inplaced with input ``x``.
Please refer to :ref:`api_
tensor
_lerp`.
Please refer to :ref:`api_
paddle
_lerp`.
"""
out_shape
=
broadcast_shape
(
x
.
shape
,
y
.
shape
)
check_type
(
weight
,
'weight'
,
(
float
,
paddle
.
Tensor
,
Variable
),
'lerp'
)
...
...
@@ -5347,7 +5347,7 @@ def erfinv(x, name=None):
def
erfinv_
(
x
,
name
=
None
):
r
"""
Inplace version of ``erfinv`` API, the output Tensor will be inplaced with input ``x``.
Please refer to :ref:`api_
tensor
_erfinv`.
Please refer to :ref:`api_
paddle
_erfinv`.
"""
check_type
(
x
,
'x'
,
(
paddle
.
Tensor
,
Variable
),
'erfinv'
)
return
_C_ops
.
erfinv_
(
x
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录