Skip to content

IndexError #6

@xhy1286

Description

@xhy1286

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..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions