Skip to content
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

value = pt_dict[tf2pt[str(var)]].numpy() KeyError: 'reduction_0.2.weight' #4

Open
ruyijidan opened this issue Sep 3, 2019 · 1 comment

Comments

@ruyijidan
Copy link

value = pt_dict[tf2pt[str(var)]].numpy()

KeyError: 'reduction_0.2.weight'

@jhxing
Copy link

jhxing commented Oct 16, 2019

I got the same issue as you. I filtered the illegal key of the pt_dict by modifying the line 87 of train.py
if str(var) in tf_names:
to
if str(var) in tf_names and tf2pt[str(var)] in pt_dict.keys():

Still, got some other issues.

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

No branches or pull requests

2 participants