tf.where()函数

tf.where()定义如下: where(condition, x=None, y=None,name=None) condition:一个Tensor,数据类型为tf.bool类型 如果x、y均为空,那么返回condition中值为True的位置的Tensor:例如:x就是condition,y是返回值 x中值为True的位置有[0,0,0],[0,1,1],[0,2,0],[0,2,1],[
相关文章
相关标签/搜索