WARNING:tensorflow:From d:\progra~2\python\virtua~1\py37_x64\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py:1635: calling BaseResourceVariable.__init__ (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version.
Instructions for updating:
If using Keras pass *_constraint arguments to layers.
V1: [[ 0.81411636 -0.38293725]]
V2: [[ 2.5807521 -0.19250003 -1.373848 ]
[-0.37121674 -0.5161457 -0.68727684]]
Model saved in file: save/model.ckpt
Tensorflow 模型的读取
NotFoundError: Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:
NotFoundError: Key v1_1 not found in checkpoint [[node save_1/RestoreV2 (defined at :7) ]]
WARNING:tensorflow:From d:\progra~2\python\virtua~1\py37_x64\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py:1635: calling BaseResourceVariable.__init__ (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version.
Instructions for updating:
If using Keras pass *_constraint arguments to layers.
INFO:tensorflow:Restoring parameters from save/model.ckpt
V1: [[ 0.81411636 -0.38293725]]
V2: [[ 2.5807521 -0.19250003 -1.373848 ]
[-0.37121674 -0.5161457 -0.68727684]]
Model restored
Tensorflow 模型的保存和读取Tensorflow 模型的保存和读取Tensorflow 模型的保存Tensorflow 模型的读取NotFoundError: Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing fro...