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 #6

Open
xhy1286 opened this issue Mar 29, 2021 · 0 comments
Open

IndexError #6

xhy1286 opened this issue Mar 29, 2021 · 0 comments

Comments

@xhy1286
Copy link

xhy1286 commented Mar 29, 2021

File "/data/home/u19120777/Graph_Convolutional_LSTM-master/Code_V1/Train_Validate.py", line 108, in TrainRNN
loss_interval_train = np.around(sum(losses_train[-interval:]).cpu().numpy()[0]/interval, decimals=8)
IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed

my pytorch version is 1.1 python version is 1.7 and I run this model with gpu, but I get troubled with this error..

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