Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
5583f277
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
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看板
未验证
提交
5583f277
编写于
8月 29, 2023
作者:
张
张春乔
提交者:
GitHub
8月 29, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Modify the docs of UpsamplingNearest2D and UpsamplingBilinear2D (#56728)
上级
7a633e64
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
7 addition
and
5 deletion
+7
-5
python/paddle/nn/layer/common.py
python/paddle/nn/layer/common.py
+7
-5
未找到文件。
python/paddle/nn/layer/common.py
浏览文件 @
5583f277
...
@@ -450,10 +450,11 @@ class UpsamplingNearest2D(Layer):
...
@@ -450,10 +450,11 @@ class UpsamplingNearest2D(Layer):
Parameters:
Parameters:
x (Tensor): 4-D Tensor, its data type is float32, float64, or uint8,
x (Tensor): 4-D Tensor, its data type is float32, float64, or uint8,
its data format is specified by :attr:`data_format`.
its data format is specified by :attr:`data_format`.
size (list|tuple|Tensor|None): Output shape of image resize
size (
int|
list|tuple|Tensor|None): Output shape of image resize
layer, the shape is (out_h, out_w) when input is a 4-D Tensor.
layer, the shape is (out_h, out_w) when input is a 4-D Tensor.
Default: None. If a list/tuple, each element can be an integer or a Tensor of shape: [1].
Default: None. If an int value, the `out_h` and `out_w` will be set as the number.
If a Tensor , its dimensions size should be a 1.
If a list/tuple, each element can be an integer or a Tensor of shape: [1].
If a Tensor, its dimensions size should be a 1.
scale_factor (float|int|list|tuple|Tensor|None): The multiplier for the input height or width. At
scale_factor (float|int|list|tuple|Tensor|None): The multiplier for the input height or width. At
least one of :attr:`size` or :attr:`scale_factor` must be set.
least one of :attr:`size` or :attr:`scale_factor` must be set.
And :attr:`size` has a higher priority than :attr:`scale_factor`.
And :attr:`size` has a higher priority than :attr:`scale_factor`.
...
@@ -539,9 +540,10 @@ class UpsamplingBilinear2D(Layer):
...
@@ -539,9 +540,10 @@ class UpsamplingBilinear2D(Layer):
Parameters:
Parameters:
x (Tensor): 4-D Tensor, its data type is float32, float64, or uint8,
x (Tensor): 4-D Tensor, its data type is float32, float64, or uint8,
its data format is specified by :attr:`data_format`.
its data format is specified by :attr:`data_format`.
size (list|tuple|Tensor|None): Output shape of image resize
size (
int|
list|tuple|Tensor|None): Output shape of image resize
layer, the shape is (out_h, out_w) when input is a 4-D Tensor.
layer, the shape is (out_h, out_w) when input is a 4-D Tensor.
Default: None. If a list/tuple, each element can be an integer or a Tensor of shape: [1].
Default: None. If an int value, the `out_h` and `out_w` will be set as the number.
If a list/tuple, each element can be an integer or a Tensor of shape: [1].
If a Tensor , its dimensions size should be a 1.
If a Tensor , its dimensions size should be a 1.
scale_factor (float|int|list|tuple|Tensor|None): The multiplier for the input height or width. At
scale_factor (float|int|list|tuple|Tensor|None): The multiplier for the input height or width. At
least one of :attr:`size` or :attr:`scale_factor` must be set.
least one of :attr:`size` or :attr:`scale_factor` must be set.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录