Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

Unable to run python3 run.py -ex ../data/test --test --restore #61

Closed
mrtpk opened this issue Jan 7, 2020 · 2 comments
Closed

Unable to run python3 run.py -ex ../data/test --test --restore #61

mrtpk opened this issue Jan 7, 2020 · 2 comments

Comments

@mrtpk
Copy link
Contributor

mrtpk commented Jan 7, 2020

When python3 run.py -ex ../data/test --test --restore is excecuted, below error is raised:
tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [512,71] rhs shape= [512,70]. This error is raised at the line self.saver.restore(self.session, ckpt). This might be due to a difference in model implementation and checkpoint.

self.saver.restore(self.session, ckpt)

@Belval
Copy link
Owner

Belval commented Jan 7, 2020

That is caused by the ampersand (&) that was added to the CHAR_VECTOR variable in config.py. If you remove it, you should be able to load the model.

@mrtpk
Copy link
Contributor Author

mrtpk commented Jan 9, 2020

Thanks for the quick response- It solved the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants