返回 (x > y) 元素的真值。
用法
tf.raw_ops.Greater(
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.greater支持广播。更多关于广播这里
例子:
x = tf.constant([5, 4, 6])
y = tf.constant([5, 2, 5])
tf.math.greater(x, y) ==> [False, True, True]
x = tf.constant([5, 4, 6])
y = tf.constant([5])
tf.math.greater(x, y) ==> [False, False, True]
相关用法
- Python tf.raw_ops.GreaterEqual用法及代码示例
- Python tf.raw_ops.GatherV2用法及代码示例
- Python tf.raw_ops.GRUBlockCellGrad用法及代码示例
- Python tf.raw_ops.GenerateBoundingBoxProposals用法及代码示例
- Python tf.raw_ops.GRUBlockCell用法及代码示例
- Python tf.raw_ops.Gather用法及代码示例
- Python tf.raw_ops.GatherNd用法及代码示例
- 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.Expm1用法及代码示例
- Python tf.raw_ops.BitwiseAnd用法及代码示例
- Python tf.raw_ops.UniqueWithCounts用法及代码示例
- Python tf.raw_ops.DecodeGif用法及代码示例
- Python tf.raw_ops.Size用法及代码示例
- Python tf.raw_ops.ScatterUpdate用法及代码示例
注:本文由纯净天空筛选整理自tensorflow.org大神的英文原创作品 tf.raw_ops.Greater。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
