提交 8160a661 编写于 作者: D dengkaipeng

fix doc priority. test=develop

上级 1ef30c23
...@@ -38,7 +38,6 @@ class InterpolateOp : public framework::OperatorWithKernel { ...@@ -38,7 +38,6 @@ class InterpolateOp : public framework::OperatorWithKernel {
auto dim_x = ctx->GetInputDim("X"); // NCHW format auto dim_x = ctx->GetInputDim("X"); // NCHW format
PADDLE_ENFORCE_EQ(dim_x.size(), 4, "X's dimension must be 4"); PADDLE_ENFORCE_EQ(dim_x.size(), 4, "X's dimension must be 4");
// priority: OutSize > scale > out_h/out_w
int out_h, out_w; int out_h, out_w;
float scale = ctx->Attrs().Get<float>("scale"); float scale = ctx->Attrs().Get<float>("scale");
if (scale > 0) { if (scale > 0) {
......
...@@ -7058,7 +7058,7 @@ def image_resize(input, ...@@ -7058,7 +7058,7 @@ def image_resize(input,
Default: None Default: None
scale(float|None): The multiplier for the input height or width. At scale(float|None): The multiplier for the input height or width. At
least one of :attr:`out_shape` or :attr:`scale`` must be set. least one of :attr:`out_shape` or :attr:`scale`` must be set.
And :attr:`scale` has a higher priority than :attr:`out_shape`. And :attr:`out_shape` has a higher priority than :attr:`scale`.
Default: None. Default: None.
name(str|None): A name for this layer(optional). If set None, the layer name(str|None): A name for this layer(optional). If set None, the layer
will be named automatically. will be named automatically.
...@@ -7239,7 +7239,7 @@ def resize_bilinear(input, ...@@ -7239,7 +7239,7 @@ def resize_bilinear(input,
scale(float|None): The multiplier for the input height or width. At scale(float|None): The multiplier for the input height or width. At
least one of :attr:`out_shape` or :attr:`scale`` must be set. least one of :attr:`out_shape` or :attr:`scale`` must be set.
And :attr:`scale` has a higher priority than :attr:`out_shape`. And :attr:`out_shape` has a higher priority than :attr:`scale`.
Default: None. Default: None.
name(str|None): The output variable name. name(str|None): The output variable name.
...@@ -7331,7 +7331,7 @@ def resize_nearest(input, ...@@ -7331,7 +7331,7 @@ def resize_nearest(input,
scale(float|None): The multiplier for the input height or width. At scale(float|None): The multiplier for the input height or width. At
least one of :attr:`out_shape` or :attr:`scale`` must be set. least one of :attr:`out_shape` or :attr:`scale`` must be set.
And :attr:`scale` has a higher priority than :attr:`out_shape`. And :attr:`out_shape` has a higher priority than :attr:`scale`.
Default: None. Default: None.
name(str|None): The output variable name. name(str|None): The output variable name.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册