diff --git a/paddle/fluid/operators/interpolate_op.cc b/paddle/fluid/operators/interpolate_op.cc index 83b2086bbb8f24835b0cefb9ef11e6d21e7b4114..357832223c01f6a0c1836fd6b6e9460fe1c74ce5 100644 --- a/paddle/fluid/operators/interpolate_op.cc +++ b/paddle/fluid/operators/interpolate_op.cc @@ -90,9 +90,9 @@ class InterpolateOpMaker : public framework::OpProtoAndCheckerMaker { "if Flase, are not aligned") .SetDefault(true); AddAttr("align_mode", - "(int, default \'1\'), can be \'0\' for " - "src_idx = scale*(dst_indx+0.5)-0.5 , can be \'1\' for " - "src_idx = scale*dst_index .") + "(int, default \'1\'), optional for bilinear interpolation" + "can be \'0\' for src_idx = scale*(dst_indx+0.5)-0.5 , " + "can be \'1\' for src_idx = scale*dst_index .") .SetDefault(1); AddComment(R"DOC( This operator samples input X to given output shape by using specified diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 4d40f2e7c2a39567e1811f1f2e4e794865c4896a..77545d600217d258f52363913fdb11f7f2009025 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -6649,7 +6649,7 @@ def image_resize(input, input and output tensors are aligned, preserving the values at the corner pixels. Default: True - align_mode(int) : An optional input to specify src_idx calculation. can be \'0\' + align_mode(int) : An optional for bilinear interpolation. can be \'0\' for src_idx = scale*(dst_indx+0.5)-0.5 , can be \'1\' for src_idx = scale*dst_index .