Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
73409d50
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看板
未验证
提交
73409d50
编写于
7月 16, 2020
作者:
W
WuHaobo
提交者:
GitHub
7月 16, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix log1p (#25488)
上级
e362095e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
3 addition
and
6 deletion
+3
-6
python/paddle/tensor/math.py
python/paddle/tensor/math.py
+3
-6
未找到文件。
python/paddle/tensor/math.py
浏览文件 @
73409d50
...
@@ -1386,7 +1386,7 @@ def min(input, dim=None, keep_dim=False, out=None, name=None):
...
@@ -1386,7 +1386,7 @@ def min(input, dim=None, keep_dim=False, out=None, name=None):
return
out
return
out
def
log1p
(
x
,
out
=
None
,
name
=
None
):
def
log1p
(
x
,
name
=
None
):
"""
"""
:alias_main: paddle.log1p
:alias_main: paddle.log1p
:alias: paddle.log1p,paddle.tensor.log1p,paddle.tensor.math.log1p
:alias: paddle.log1p,paddle.tensor.log1p,paddle.tensor.math.log1p
...
@@ -1396,9 +1396,6 @@ def log1p(x, out=None, name=None):
...
@@ -1396,9 +1396,6 @@ def log1p(x, out=None, name=None):
Out =
\\
ln(x+1)
Out =
\\
ln(x+1)
Args:
Args:
x (Variable): Input LoDTensor or Tensor. Must be one of the following types: float32, float64.
x (Variable): Input LoDTensor or Tensor. Must be one of the following types: float32, float64.
out(Variable, optional): Optional output which can be any created
Variable that meets the requirements to store the result of operation.
if out is None, a new Varibale will be create to store the result.
name(str, optional): The default value is None. Normally there is no need for
name(str, optional): The default value is None. Normally there is no need for
user to set this property. For more information, please refer to :ref:`api_guide_Name`
user to set this property. For more information, please refer to :ref:`api_guide_Name`
Returns:
Returns:
...
@@ -1427,11 +1424,11 @@ def log1p(x, out=None, name=None):
...
@@ -1427,11 +1424,11 @@ def log1p(x, out=None, name=None):
inputs
=
{
'X'
:
[
x
]}
inputs
=
{
'X'
:
[
x
]}
helper
=
LayerHelper
(
'log1p'
,
**
locals
())
helper
=
LayerHelper
(
'log1p'
,
**
locals
())
dtype
=
helper
.
input_dtype
(
input_param_name
=
'x'
)
dtype
=
helper
.
input_dtype
(
input_param_name
=
'x'
)
if
out
is
None
:
out
=
helper
.
create_variable_for_type_inference
(
dtype
)
out
=
helper
.
create_variable_for_type_inference
(
dtype
)
helper
.
append_op
(
type
=
"log1p"
,
inputs
=
{
"X"
:
x
},
outputs
=
{
"Out"
:
out
})
helper
.
append_op
(
type
=
"log1p"
,
inputs
=
{
"X"
:
x
},
outputs
=
{
"Out"
:
out
})
return
out
return
out
def
addcmul
(
input
,
tensor1
,
tensor2
,
value
=
1.0
,
out
=
None
,
name
=
None
):
def
addcmul
(
input
,
tensor1
,
tensor2
,
value
=
1.0
,
out
=
None
,
name
=
None
):
"""
"""
:alias_main: paddle.addcmul
:alias_main: paddle.addcmul
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录