tensorflow tf.equal(x, y, name=None)
来源:互联网 发布:linux常用的命令有哪些 编辑:程序博客网 时间:2024/06/07 16:26
tf.equal(x, y, name=None)
Returns the truth value of (x == y) element-wise.
Args:
x
: ATensor
. Must be one of the following types:float32
,float64
,int32
,int64
,complex64
,quint8
,qint8
,qint32
.y
: ATensor
. Must have the same type asx
.name
: A name for the operation (optional).
Returns:
A Tensor
of type bool
.
代码举例:
a = tf.constant([2,3])b = tf.constant([3,4])sess.run(tf.equal(a,b))
输出:
array([False, False], dtype=bool)
阅读全文
0 0
- tensorflow tf.equal(x, y, name=None)
- tf.equal(x, y, name=None)
- tensorflow tf.logical_and(True, False) tf.logical_not(x, name=None)
- tf.is_finite(x, name=None)
- tf.cast(x,dtype,name=None )
- tensorflow 中tf.gather(params, indices, validate_indices=None, name=None) 函数讲解
- tf.gather_nd(params, indices, name=None)
- tf.reduce_mean(input,axis=None,keep_dims=False,name=None,reduction_indices=None)
- tf.argmax(input, axis=None, name=None, dimension=None)
- tf.segment_sum(data, segment_ids, name=None)介绍
- tf.pad(input, paddings, name=None) 解析
- tensorflow的tf.equal()函数的使用方法
- tf.nn.atrous_conv2d(value, filters, rate, padding, name=None) {#atrous_conv2d}
- tf.nn.conv2d(input, filter, strides, padding, use_cudnn_on_gpu=None, name=None) 除去name参数用以指定该操作的nam
- tf.equal
- 可以用save name x y 保存工作空间变量 x y到文件 name.mat
- 解方程: x+y=x|y
- tf.one_hot(indices, depth, on_value=None, off_value=None, axis=None)
- TCP套接字网络编程实例(二)
- Android提醒微技巧,你真的了解Dialog、Toast和Snackbar吗?
- SpringBoot的理解
- HDU 1004 Let the Balloon Rise
- Windows环境wamp升级PHP版本
- tensorflow tf.equal(x, y, name=None)
- linux 系统下编译mysql源码遇到的问题
- c语言笔记6-函数
- freemarker如何获取当前时间或者时间戳?
- C++之让接口容易被正确使用,不易被误用(18)---《Effective C++》
- solr和mongodb 比较
- Vue 2.0 vue-router基础学习(一)
- spring cloud 入门实践系列
- SpringMVC 4.0 确定目标方法POJO类型入参的过程