曹操墓有新进展 曹操遗骸基本被确认曹丕建筑高陵
- paddle. is_floating_point ( x: Tensor ) bool [source]
-
百度 尽可能减少按键的高集成多媒体系统有时光倒流的作用!让我一瞬间回到了十年前刚工作的时候!什么活儿都不会干!一脸懵逼!分分钟怀疑自己的智商!空调界面在哪里?蓝牙音乐怎么调出来?导航声音怎么关小?当然了,5008的优点还是不少的,比如座椅。
Returns whether the dtype of x is one of paddle.float64, paddle.float32, paddle.float16, and paddle.bfloat16.
- Parameters
-
x (Tensor) – The input tensor.
- Returns
-
True if the dtype of x is floating type, otherwise false.
- Return type
-
bool
Examples
>>> import paddle >>> x = paddle.arange(1., 5., dtype='float32') >>> y = paddle.arange(1, 5, dtype='int32') >>> print(paddle.is_floating_point(x)) True >>> print(paddle.is_floating_point(y)) False