From 78145c7dff12b0bfb181a0217b42ca2c261bb268 Mon Sep 17 00:00:00 2001 From: tink2123 Date: Thu, 24 Jan 2019 17:48:56 +0800 Subject: [PATCH] modified some comments test=develop --- paddle/fluid/operators/interpolate_op.cc | 6 +++--- python/paddle/fluid/layers/nn.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/fluid/operators/interpolate_op.cc b/paddle/fluid/operators/interpolate_op.cc index 83b2086bbb8..357832223c0 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 4d40f2e7c2a..77545d60021 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 . -- GitLab