Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 418 Bytes

is_floating_point_cn.rst

File metadata and controls

22 lines (14 loc) · 418 Bytes

is_floating_point

判断输入 Tensor 的数据类型是否为浮点类型。

参数

  • x (Tensor) - 输入的 Tensor。

返回

bool,输入 tensor 的数据类型为浮点数类型则为 True,反之为 False.

代码示例

COPY-FROM: paddle.is_floating_point