Solved by shaibagon in post #2 
              
              
                In pytorch the order of dimensions are b-c-l with: 


b is the “mini batch” dimension

c is the “channel” or the actual dimension of each 1d point

l is the length of your c-dimensional signal. 
In your case, you have a single example, thus b=1. You have 1024 samples, thus l=1024 and the dimension o…