Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 384 Bytes

is_integer_cn.rst

File metadata and controls

24 lines (14 loc) · 384 Bytes

is_integer

.. py:function:: paddle.is_integer(x)


判断输入 tensor 的数据类型是否为整数类型。

参数

  • x (Tensor) - 输入 Tensor

返回

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

代码示例

COPY-FROM: paddle.is_integer