最近在用到数据筛选,观看代码中有tf.where()的用法,不是很常用,也不是很好理解.在这里记录一下 tf.where( condition, x=None, y=None, name=None ) Return the elements, either from x or y, depending on the condition. 理解:where嘛,就是要根据条件找到你要的东西. condition:条件,是一个boolean x:数据 y:同x维度的数据. 返回,返回符合条件的数据.当…