一、norm
- tf.norm( tensro , ord = , axis = ) 默认ord = 1
二、max min
-
tf.reduce_min( ) tf.reduce_max( ) 返回最大/小值
-
tf.argmax( ) tf.argmin( ) 返回最大/小值的index
三、equal unique
-
tf.equal( tensor1 , tensor2 ) 比较两个tensor
利用tf.equal() 计算ACCURACY
-
tf.unique( tensor )
获得不重复的一个Unique array 和一个对应的idx array
通过tf.gather可以恢复
tf.gather( Unique , idx ) ⇒ [4,2,2,4,3]