返回 x 的哪些元素是有限的。
用法
tf.raw_ops.IsFinite(
x, name=None
)
參數
-
x
一個Tensor
。必須是以下類型之一:bfloat16
,half
,float32
,float64
。 -
name
操作的名稱(可選)。
返回
-
Tensor
類型為bool
。
例子:
x = tf.constant([5.0, 4.8, 6.8, np.inf, np.nan])
tf.math.is_finite(x) ==> [True, True, True, False, False]
numpy 兼容性
等價於 np.isfinite
相關用法
- Python tf.raw_ops.IsInf用法及代碼示例
- Python tf.raw_ops.IsNan用法及代碼示例
- Python tf.raw_ops.Invert用法及代碼示例
- Python tf.raw_ops.IdentityN用法及代碼示例
- Python tf.raw_ops.InvertPermutation用法及代碼示例
- Python tf.raw_ops.Imag用法及代碼示例
- Python tf.raw_ops.InplaceAdd用法及代碼示例
- Python tf.raw_ops.TPUReplicatedInput用法及代碼示例
- Python tf.raw_ops.Bitcast用法及代碼示例
- Python tf.raw_ops.SelfAdjointEigV2用法及代碼示例
- Python tf.raw_ops.BatchMatMul用法及代碼示例
- Python tf.raw_ops.OneHot用法及代碼示例
- Python tf.raw_ops.ResourceScatterNdSub用法及代碼示例
- Python tf.raw_ops.ReadVariableXlaSplitND用法及代碼示例
- Python tf.raw_ops.GatherV2用法及代碼示例
- Python tf.raw_ops.Expm1用法及代碼示例
- Python tf.raw_ops.BitwiseAnd用法及代碼示例
- Python tf.raw_ops.UniqueWithCounts用法及代碼示例
- Python tf.raw_ops.DecodeGif用法及代碼示例
- Python tf.raw_ops.Size用法及代碼示例
注:本文由純淨天空篩選整理自tensorflow.org大神的英文原創作品 tf.raw_ops.IsFinite。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。