Sizes of tensors must match except in dimension 1

Dear @ptrblck : thank you for your suggestions. To be honest. I follow your other answer about the similar issues. RuntimeError: Sizes of tensors must match except in dimension 1.

I know the issue. However,none of the samples on r have that dimension is 7. Since any sample without r does not have a dimension of 7, why is there a prompt for a dimension of 7?

I’m sorry, I’m constantly trying to debug to find the problem. Can you give me some advice, where should I place breakpoints to effectively identify the problem. Thank you for answering this really stupid sounding question.

Thanks. best wishes