From 3d159689583696757167c02815cd1859364649b2 Mon Sep 17 00:00:00 2001 From: chenweihang Date: Wed, 11 Jul 2018 06:23:32 +0000 Subject: [PATCH] docs: fix some errors of description --- paddle/fluid/operators/unsqueeze_op.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/paddle/fluid/operators/unsqueeze_op.cc b/paddle/fluid/operators/unsqueeze_op.cc index da542aa852b..f2a15fdf572 100644 --- a/paddle/fluid/operators/unsqueeze_op.cc +++ b/paddle/fluid/operators/unsqueeze_op.cc @@ -111,19 +111,19 @@ class UnsqueezeOpMaker : public framework::OpProtoAndCheckerMaker { AddOutput("Out", "(Tensor). The output tensor of unsqueeze operator."); AddAttr>("axes", "(std::vector). List of integers," - " indicate the dimensions to be inserted") + " indicating the dimensions to be inserted") .AddCustomChecker([](const std::vector &axes) { PADDLE_ENFORCE(!axes.empty(), "Invalid axes, The unsqueeze axes is empty."); // Validity Check: axes dims (<6). PADDLE_ENFORCE(static_cast(axes.size()) < 6, - "Invalid dimensions, dynamic dimensions should within " - "[1, 6] dimensions (Eigen limit)."); + "Invalid dimensions, dynamic dimensions should be " + "within [1, 6] dimensions (Eigen limit)."); // Validity Check: the range of unsqueeze aixs. for (int axis : axes) { PADDLE_ENFORCE(axis < 6, - "Invalid dimensions, input axis should within " - "[1, 6] dimensions (Eigen limit)."); + "Invalid dimensions, input axis should be" + " within [1, 6] dimensions (Eigen limit)."); } }); AddAttr( -- GitLab