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

How to convert. Pkl weight file to torch script format #176

Open
zzz2222 opened this issue Feb 2, 2021 · 0 comments
Open

How to convert. Pkl weight file to torch script format #176

zzz2222 opened this issue Feb 2, 2021 · 0 comments

Comments

@zzz2222
Copy link

zzz2222 commented Feb 2, 2021

I tried to convert, but found that in network instantiation, the parameter of the network is object instead of object nn.module ,
net = NetworkFactory(flag=True) net.load_state_dict(torch.load(r"E:\cache\nnet\LSTR\LSTR_100.pkl"), False) which results in an error: AttributeError: 'NetworkFactory' object has no attribute 'load_state_dict' . How can I solve this problem

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

1 participant