Solved by tom in post #2 
              
              
                The error sounds to me as if rows in the prospective tensor are not of the same length. 
Tensors are strictly regular in this respect, if you want to process data of different lengths, you would need to resort to padding or something like that. 
Best regards 
Thomas