数据统计
Ŀ¼ Outline Vector norm Eukl. Norm L1 Norm reduce_min/max/mean argmax/argmin tf.equal Accuracy tf.unique Outline tf.norm tf.reduce_min/max/mean tf.argmax/argmin tf.equal tf.unique Vector norm Eukl. Norm \[ ||x||_2=|\sum_{k}x_k^2|^{\frac{1}{2}} \] Max.norm \[ ||x||_{\infty}=max_k|x_k| \] L1-Norm \[ ||x||_1=\sum_{k}|x_k| \] Here talks about Vector Norm Eukl. Norm import tensorflow as tf a = tf . ones ([ 2 , 2 ]) a <tf.Tensor : id = 11, shape = (2, 2), dtype = float32, numpy = array([[1., 1.], [1., 1.]], dtype = float32) > tf . norm ( a ) <tf.Tensor : id = 7, shape = (), dtype = float32, numpy = 2