tensorflow API:tf.not_equal

来源:互联网 发布:无线网卡怎么改mac地址 编辑:程序博客网 时间:2024/06/10 12:36

tf.not_equal:

not_equal(
x,
y,
name=None
)

Returns the truth value of (x != y) element-wise.
返回逐个元素的布尔值

NOTE: NotEqual supports broadcasting. More about broadcasting 与numpy中的广播机制一样

Args:
x: A Tensor. Must be one of the following types: half, float32, float64, uint8, int8, int16, int32, int64, complex64, quint8, qint8, qint32, string, bool, complex128.
y: A Tensor. Must have the same type as x.
y必须类型与x一样
name: A name for the operation (optional).
Returns:
A Tensor of type bool.
返回类型为bool的tensor

原创粉丝点击