未验证 提交 5583f277 编写于 作者: 张春乔 提交者: GitHub

Modify the docs of UpsamplingNearest2D and UpsamplingBilinear2D (#56728)

上级 7a633e64
...@@ -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.
先完成此消息的编辑!
想要评论请 注册