Hi,
Could you give the full stack trace that comes with the error? That will tell you which line is causing the issue. You can add printing at this line to check the size of the Tensor and investigate why they are not what you expect.