From 0ea468225bc1fff74f1e6193ffd418aca4d1856c Mon Sep 17 00:00:00 2001 From: chenweihang Date: Wed, 11 Jul 2018 06:35:29 +0000 Subject: [PATCH] docs: fix some errors of description --- paddle/fluid/operators/squeeze_op.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/operators/squeeze_op.cc b/paddle/fluid/operators/squeeze_op.cc index 805f198bf..6c507baf3 100644 --- a/paddle/fluid/operators/squeeze_op.cc +++ b/paddle/fluid/operators/squeeze_op.cc @@ -73,7 +73,7 @@ class SqueezeOpInferShape : public framework::InferShapeBase { "Invalid axis, the negative axis is out of range."); PADDLE_ENFORCE(in_dims[current] == 1, "Invalid axis index, the axis that will be squeezed " - "should equal 1."); + "should be equal to 1."); if (!(should_squeeze[current])) { ++cnt_squeezed_dims; @@ -123,7 +123,7 @@ class SqueezeOpMaker : public framework::OpProtoAndCheckerMaker { AddOutput("Out", "(Tensor). The output tensor of squeeze operator."); AddAttr>("axes", "(std::vector). List of integers," - " indicate the dimensions to squeeze.") + " indicating the dimensions to squeeze.") .SetDefault({}); AddAttr("inplace", "(default: false) Squeeze the source tensor's shape without " -- GitLab