tf.where()定义如下:
where(condition, x=None, y=None,name=None)
condition:一个Tensor,数据类型为tf.bool类型
如果x、y均为空,那么返回condition中值为True的位置的Tensor:例如:x就是condition,y是返回值
where(condition, x=None, y=None,name=None)
condition:一个Tensor,数据类型为tf.bool类型
如果x、y均为空,那么返回condition中值为True的位置的Tensor:例如:x就是condition,y是返回值
Comments
Post a Comment