未验证 提交 c4e480ef 编写于 作者: Y Yang Zhang 提交者: GitHub

Fix `paddle.cos` docstring (#25969)

test=develop,test=document_fix

explain input/out put range and out of boundary behavior
上级 b2d41e2a
......@@ -242,6 +242,9 @@ $$out = \\left \\lfloor x \\right \\rfloor$$
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)$$
)DOC";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册