-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module 'tensorflow._api.v2.train' has no attribute 'NewCheckpointReader' #96
Comments
use previous version dataset with tensorflow 1.13 and keras 2.24 this error will not occur |
@shubhaminnani that answer works, but a legit solution for TensorFlow 2.0+ is still required. Does anyone know of the new syntax? I couldn't find a clear explanation in the docs but will dive deeper |
From looking at the TF source for v2.0.0-beta1 here it looks like this should work as a drop-in:
|
I just added the fix above to my PR that upgrades this repo to TensorFlow 2.0Beta-1: |
use tf.compat.v1.train.NewCheckpointReader and it works @ZhonghuaTian |
module 'tensorflow._api.v2.train' has no attribute 'NewCheckpointReader'
when I try to extract weights from previous trained model this issue happened, My tensorflow version is 2.0alpha, and cuda is 10.1.
The text was updated successfully, but these errors were encountered: