hart-pytorch
hart-pytorch copied to clipboard
dimension out of range (expected to be in range of [-1, 0], but got 1)
Hi,
When I run the main.py file to execute the model, an error appears:
Traceback (most recent call last):
File "/home/robert/Downloads/pycharm-2018.1.3/helpers/pydev/pydevd.py", line 1664, in
Why?
I have debugged the code. The parameter of outputs is a list. And the dimension of outputs[i][7] (i=0,1...,29) is just 1, so there is an error for the operation T.stack(o, 1).
I cannot understand what the reason for the one dimension of outputs[i][7]. Can you help me? Thanks.