Thanks for your suggestion! I tried and the output of model(preprocess_seq.reshape(1,-1)) is [length_seq, 1], The length_seq dim is wrongly recognized as batch dim. as a result, the model computes each character in my seq as a seperated seq. As shown here, image1190×732 51.3 KB
still waiting for solution