Use tf.compat.v1.train.NewCheckpointReader and it works.
tensorflow==2.0, module ‘tensorflow._api.v2.train‘ has no attribute ‘NewCheckpointReader‘
最新推荐文章于 2024-03-21 17:46:38 发布
Use tf.compat.v1.train.NewCheckpointReader and it works.