返回 (x <= y) 元素的真值。
用法
tf.math.less_equal(
x, y, name=None
)參數
-
x一個Tensor。必須是以下類型之一:float32,float64,int32,uint8,int16,int8,int64,bfloat16,uint16,half,uint32,uint64。 -
y一個Tensor。必須與x具有相同的類型。 -
name操作的名稱(可選)。
返回
-
Tensor類型為bool。
注意: tf.math.less_equal支持廣播。更多關於廣播這裏
例子:
x = tf.constant([5, 4, 6])
y = tf.constant([5])
tf.math.less_equal(x, y) ==> [True, True, False]
x = tf.constant([5, 4, 6])
y = tf.constant([5, 6, 6])
tf.math.less_equal(x, y) ==> [True, True, True]
相關用法
- Python tf.math.less用法及代碼示例
- Python tf.math.log_sigmoid用法及代碼示例
- Python tf.math.log1p用法及代碼示例
- Python tf.math.lgamma用法及代碼示例
- Python tf.math.l2_normalize用法及代碼示例
- Python tf.math.logical_or用法及代碼示例
- Python tf.math.log用法及代碼示例
- Python tf.math.logical_not用法及代碼示例
- Python tf.math.logical_and用法及代碼示例
- Python tf.math.logical_xor用法及代碼示例
- Python tf.math.special.fresnel_cos用法及代碼示例
- Python tf.math.polyval用法及代碼示例
- Python tf.math.is_finite用法及代碼示例
- Python tf.math.special.bessel_k0e用法及代碼示例
- Python tf.math.acosh用法及代碼示例
- Python tf.math.invert_permutation用法及代碼示例
- Python tf.math.segment_prod用法及代碼示例
- Python tf.math.bincount用法及代碼示例
- Python tf.math.bessel_i0e用法及代碼示例
- Python tf.math.unsorted_segment_min用法及代碼示例
注:本文由純淨天空篩選整理自tensorflow.org大神的英文原創作品 tf.math.less_equal。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
