Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
a3db159c
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
a3db159c
编写于
3月 13, 2023
作者:
M
Mr.Juice
提交者:
GitHub
3月 13, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix docs 修复第七轮第一组文档问题 (#51506)
* fix docs 第七轮第一组 * fix docs 第七轮第一组
上级
5a39365a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
7 deletion
+6
-7
python/paddle/nn/clip.py
python/paddle/nn/clip.py
+1
-1
python/paddle/nn/functional/common.py
python/paddle/nn/functional/common.py
+4
-5
python/paddle/nn/layer/rnn.py
python/paddle/nn/layer/rnn.py
+1
-1
未找到文件。
python/paddle/nn/clip.py
浏览文件 @
a3db159c
...
...
@@ -371,7 +371,7 @@ class ClipGradByValue(ClipGradBase):
Args:
max (float): The maximum value to clip by.
min (float, optional): The minimum value to clip by. if not set by user, it will be set to ``-max``
automatically. In this case, ``max`` must be greater than
0
.
automatically. In this case, ``max`` must be greater than
:math:`0`
.
Examples:
.. code-block:: python
...
...
python/paddle/nn/functional/common.py
浏览文件 @
a3db159c
...
...
@@ -1730,7 +1730,7 @@ def zeropad2d(x, padding, data_format="NCHW", name=None):
data_format(str, optional): An string from: "NHWC", "NCHW". Specify the data format of
the input data. Default: "NCHW".
name(str, optional): The default value is None. Normally there is no need for user
to set this property.
to set this property.
For more information, please refer to :ref:`api_guide_Name`.
Returns:
Tensor, padded with 0 according to pad and data type is same as input.
...
...
@@ -1739,12 +1739,11 @@ def zeropad2d(x, padding, data_format="NCHW", name=None):
.. code-block:: python
import paddle
import numpy as np
import paddle.nn.functional as F
x_shape = (1, 1, 2, 3)
x = paddle.arange(np.prod(x_shape), dtype="float32").reshape(x_shape) + 1
x_shape = paddle.to_tensor([1, 1, 2, 3])
x = paddle.arange(paddle.prod(x_shape), dtype="float32").reshape(x_shape) + 1
y = F.zeropad2d(x, [1, 2, 1, 1])
print(y)
# [[[[0. 0. 0. 0. 0. 0.]
# [0. 1. 2. 3. 0. 0.]
# [0. 4. 5. 6. 0. 0.]
...
...
python/paddle/nn/layer/rnn.py
浏览文件 @
a3db159c
...
...
@@ -1224,7 +1224,7 @@ class BiRNN(Layer):
Parameters:
cell_fw (RNNCellBase): A RNNCellBase instance used for forward RNN.
cell_bw (RNNCellBase): A RNNCellBase instance used for backward RNN.
time_major (bool): Whether the first dimension of the input means the
time_major (bool
, optional
): Whether the first dimension of the input means the
time steps. Defaults to False.
Inputs:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录