摘要: 上一篇简单介绍了tensorflow的基本操作,这一篇介绍一些常用的函数。 tf.constant() tf.constant ( value , dtype = None , shape = None , name = 'Const' , verify_shape = False ) value: 阅读全文
posted @ 2020-02-24 19:46 panday 阅读(845) 评论(0) 推荐(0) 编辑
摘要: tf.nn.l2_loss()与tf.contrib.layers.l2_regularizerd()都是TensorFlow中的L2正则化函数,tf.contrib.layers.l2_regularizerd()函数在tf 2.x版本中被弃用了。 两者都能用来L2正则化处理,但运算有一点不同。 阅读全文
posted @ 2020-02-24 19:39 panday 阅读(3996) 评论(1) 推荐(0) 编辑