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

IndexError: tuple index out of range #19

Closed
caijie12138 opened this issue May 7, 2019 · 3 comments
Closed

IndexError: tuple index out of range #19

caijie12138 opened this issue May 7, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@caijie12138
Copy link

caijie12138 commented May 7, 2019

when I run python train.py --conf_path=model_zoo/demo/conf.json . An Error occurs, anyone meet this error:
Traceback (most recent call last):
File "train.py", line 275, in
main(params)
File "train.py", line 227, in main
lm.train(optimizer, loss_fn)
File "/NeuronBlocks-master/LearningMachine.py", line 156, in train
logits_softmax = self.model(inputs_desc, length_desc, *param_list)
File "
/anaconda3/envs/py35/lib/python3.5/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/NeuronBlocks-master/Model.py", line 357, in forward
inputs, lengths = transform_tensors2params(inputs_desc, length_desc, param_list)
File "
/NeuronBlocks-master/utils/common_utils.py", line 176, in transform_tensors2params
lengths[key] = param_list[length_desc[key]]
IndexError: tuple index out of range

@ljshou
Copy link
Member

ljshou commented May 7, 2019

Hi caijie,found that you are using python 3.5. currently we support Python 3.6. we are trying to repro the issue you met.

@adolphk-yk
Copy link
Contributor

Hi caijie, this issue is caused by python 3.5.x, you can update python to 3.6.x .

@caijie12138
Copy link
Author

Thank you!

@ljshou ljshou added the good first issue Good for newcomers label May 7, 2019
@ljshou ljshou closed this as completed May 8, 2019
@ljshou ljshou added bug Something isn't working and removed good first issue Good for newcomers labels May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants