tensorflow函数_tf.where()

1.第一种用法:tf.where(input, name=None):返回输入矩阵中true的位置 For example: (1)‘input’ tensor is [[True, False] [True, False]] input里面有两个true,所以返回两行(两个位置信息) where(input) ==> [[0, 0], [1, 0]] (2)input tensor is [[[
相关文章
相关标签/搜索