Solved by safakkbilici in post #4 
              
              
                If your batch size is 12, sequence length is 10 and number of your classes is 3; your output before passing it loss fn should have dimension [batch_size, n_classes, seq_len] and your target should have dimension [batch_size, seq_len]. An example: [12, 3, 10] and [12, 10]. It is okey to pass this to n…