fix doc priority. test=develop

revert-16734-refine/test_imperative_transformer
dengkaipeng 6 years ago
parent 1ef30c230d
commit 8160a66193

@ -38,7 +38,6 @@ class InterpolateOp : public framework::OperatorWithKernel {
auto dim_x = ctx->GetInputDim("X"); // NCHW format
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;
float scale = ctx->Attrs().Get<float>("scale");
if (scale > 0) {

@ -7058,7 +7058,7 @@ def image_resize(input,
Default: None
scale(float|None): The multiplier for the input height or width. At
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.
name(str|None): A name for this layer(optional). If set None, the layer
will be named automatically.
@ -7239,7 +7239,7 @@ def resize_bilinear(input,
scale(float|None): The multiplier for the input height or width. At
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.
name(str|None): The output variable name.
@ -7331,7 +7331,7 @@ def resize_nearest(input,
scale(float|None): The multiplier for the input height or width. At
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.
name(str|None): The output variable name.

Loading…
Cancel
Save