From 7ee70a47b89671d04eafa755487b79be820f02e7 Mon Sep 17 00:00:00 2001 From: wawltor Date: Mon, 31 Aug 2020 14:06:13 +0800 Subject: [PATCH] update the doc for the some ops update the doc for the some ops, ceil asin, atan --- paddle/fluid/operators/activation_op.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/paddle/fluid/operators/activation_op.cc b/paddle/fluid/operators/activation_op.cc index 81bb6881fae..700517e6b9f 100644 --- a/paddle/fluid/operators/activation_op.cc +++ b/paddle/fluid/operators/activation_op.cc @@ -244,7 +244,6 @@ UNUSED constexpr char CosDoc[] = R"DOC( Cosine Operator. Computes cosine of x element-wise. Input range is `(-inf, inf)` and output range is `[-1,1]`. -Return `nan` if input is out of boundary. $$out = cos(x)$$ @@ -342,7 +341,9 @@ $$out = \cos^{-1}(x)$$ class AsinOpMaker : public framework::OpProtoAndCheckerMaker { public: void Make() override { - AddInput("X", "Input of asin operator"); + AddInput("X", + "Input of asin operator, an N-D Tensor, with data type float32, " + "float64 or float16."); AddOutput("Out", "Output of asin operator"); AddComment(R"DOC( Arcsine Operator. @@ -356,7 +357,9 @@ $$out = \sin^{-1}(x)$$ class AtanOpMaker : public framework::OpProtoAndCheckerMaker { public: void Make() override { - AddInput("X", "Input of atan operator"); + AddInput("X", + "Input of atan operator, an N-D Tensor, with data type float32, " + "float64 or float16."); AddOutput("Out", "Output of atan operator"); AddComment(R"DOC( Arctangent Operator. -- GitLab