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

Unable to find ffnn.pkl file #14

Open
lthakur007 opened this issue Jan 7, 2019 · 2 comments
Open

Unable to find ffnn.pkl file #14

lthakur007 opened this issue Jan 7, 2019 · 2 comments

Comments

@lthakur007
Copy link

Hi,
Could you please help me fix the following issue.
Traceback (most recent call last):
File "main.py", line 4, in
from model import FNN
File "/root/dnn-ctr-fnn/dnn_ctr/model/FNN.py", line 540, in
fnn.load_state_dict(torch.load('./data/model/ffnn.pkl'))
File "/root/.local/lib/python2.7/site-packages/torch/serialization.py", line 356, in load
f = open(f, 'rb')
IOError: [Errno 2] No such file or directory: './data/model/ffnn.pkl'

@nzc
Copy link
Owner

nzc commented Jan 7, 2019

@LuckyNikki This is my fault. You are supposed to Document the code in line 540 (fnn.load_state_dict(torch.load('./data/model/ffnn.pkl'))) and use the code in line 541 to pretrain the fm model and save it.

@lthakur007
Copy link
Author

Thank you for the help. It worked :).

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