© 1999-2048 dssz.net 粤ICP备11031372号
[其它] tensorflow 固定部分参数训练,只训练部分参数的实例
说明:在使用tensorflow来训练一个模型的时候,有时候需要依靠验证集来判断模型是否已经过拟合,是否需要停止训练。 1.首先想到的是用tf.placeholder()载入不同的数据来进行计算,比如 def inference(input_): """ this is where you put your graph. the following is just an example. """ conv1 = tf.layers.conv2d(input_) conv2 =<weixin_38645865> 上传 | 大小:47kb