Skip to content

加载模型时报错 #2

Description

@Moe-Shiro

self.saver.restore(self.sess, checkpoint.model_checkpoint_path)加载模型这一直报错
ValueError: Can only save/restore ResourceVariables when executing eagerly, got type: <class 'tensorflow.python.framework.ops.Tensor'>.
是tensorflow2不兼容的原因吗

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions