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

name 'model' is not defined #10

Open
Chauncey-Wang opened this issue Jul 5, 2021 · 0 comments
Open

name 'model' is not defined #10

Chauncey-Wang opened this issue Jul 5, 2021 · 0 comments

Comments

@Chauncey-Wang
Copy link

When I use your DeepConvLSTM_py3.py, I get this error.

Traceback (most recent call last):
File "/mnt/ba3b04da-ce1b-4c21-ad1b-3aff7d337cdf/wangxing/convlstm/DeepConvLSTM_py3.py", line 394, in
train(net,X_train,y_train,X_val,y_val,**args)
File "/mnt/ba3b04da-ce1b-4c21-ad1b-3aff7d337cdf/wangxing/convlstm/DeepConvLSTM_py3.py", line 180, in train
output, h = net(inputs,h,inputs.size()[0]) # Run inputs through network
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/mnt/ba3b04da-ce1b-4c21-ad1b-3aff7d337cdf/wangxing/convlstm/DeepConvLSTM_py3.py", line 86, in forward
if model.n_layers > 0:
NameError: name 'model' is not defined

It seems like you do not define 'model' before use it.

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