Skip to content

Commit

Permalink
Has inf (PaddlePaddle#1239)
Browse files Browse the repository at this point in the history
* update the has_inf cn_api doc

* alter tensor/LoDtensor to Tensor/LoDTensor
  • Loading branch information
FrostML authored Sep 25, 2019
1 parent 48f7177 commit 5704c4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/fluid/api_cn/layers_cn/has_inf_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ has_inf

.. py:function:: paddle.fluid.layers.has_inf(x)
测试x是否包括一个无穷数
检查输入的变量(x)中是否包含无穷数(inf)。

参数:
- **x(variable)** - 用于被检查的Tensor/LoDTensor
- **x** (Variable) - 被检查的变量Tensor/LoDTensor

返回: tensor变量存储输出值,包含一个bool型数值
返回:Variable(Tensor)变量存储输出值,包含一个bool型数值,指明输入中是否包含无穷数(inf)。

返回类型:Variable
返回类型:变量(Variable)

**代码示例**:

Expand Down

0 comments on commit 5704c4c

Please sign in to comment.