问题 raise ValueError("Can only save/restore ResourceVariables when " ValueError: Can only save/restore ResourceVariables when executing eagerly, got type: <class ‘tensorflow.python.framework.ops.Tensor’>. 可能的原因 忘记禁用tf2 tf.disable_v2_behavior()