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

AttributeError:‘DataLoader’ object has no attribute ‘size’ #37

Open
Jihao-Li opened this issue Dec 5, 2018 · 4 comments
Open

Comments

@Jihao-Li
Copy link

Jihao-Li commented Dec 5, 2018

Hello, guys. When I run this command:
python main.py --network_type cnn --dataset cifar --controller_optim momentum --controller_lr_cosine=True --controller_lr_max 0.05 --controller_lr_min 0.0001 --entropy_coeff 0.1
I got a AttributeError:‘DataLoader’ object has no attribute ‘size’.
This is in 148 line in the utils.py. And 'Dataloader' object has no attribute 'narrow' and 'view'. The version of pytorch in my computer is 0.4.1. Is my version wrong?
Has anyone got any ideas for this problem?

@svjack
Copy link

svjack commented Dec 13, 2018

Current Implementation seemed only support nlp example task (search construction of rnn cell)
the Trainer class now only accept dataset param as torch.Tensor class rather than DataLoader
and the doc string had elaborate it.
The structure search implementation class in shared_cnn.py not implement favor functions
consider update date of this project, should consider abandon this project.

@Jihao-Li
Copy link
Author

OK! Thank you!

@svjack
Copy link

svjack commented Dec 17, 2018

OK! Thank you!
I recommend you to try
https://github.com/renqianluo/NAO
it seems a mixture of current project and the official implemetation https://github.com/melodyguan/enas
except that it replaced RL learning optimize method by nlp seq2seq methods
if you prefer, You can try to fixed it into RL form.

@Jihao-Li
Copy link
Author

      > OK! Thank you!

I recommend you to try
https://github.com/renqianluo/NAO
it seems a mixture of current project and the official implemetation https://github.com/melodyguan/enas
except that it replaced RL learning optimize method by nlp seq2seq methods
if you prefer, You can try to fixed it into RL form.

Thank you for your help. I will have a try.

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