白细胞偏低是什么意思
- paddle. isfinite ( x: Tensor, name: str | None = None ) Tensor [source]
-
百度 北京市监察委在接受同级党委和上级纪委监委监督的同时,自觉接受本级人大及其常委会的监督,2017年市监察委主动向市人大常委会做过2次专题汇报。
Return whether every element of input tensor is finite number or not.
- Parameters
-
x (Tensor) – The input tensor, it’s data type should be float16, float32, float64, int32, int64, complex64, complex128.
name (str|None, optional) – Name for the operation (optional, default is None). For more information, please refer to Name.
- Returns
-
Tensor, the bool result which shows every element of x whether it is finite number or not.
Examples
>>> import paddle >>> x = paddle.to_tensor([float('-inf'), -2, 3.6, float('inf'), 0, float('-nan'), float('nan')]) >>> out = paddle.isfinite(x) >>> out Tensor(shape=[7], dtype=bool, place=Place(cpu), stop_gradient=True, [False, True , True , False, True , False, False])