tf.contrib.layers.l2_regularizer 就是我们熟知的L2正则化,是权重的平方再加和 L1正则化是权重的绝对值加和 转载:https://www.cnblogs.com/guqiangjs/p/7807852.html