RuntimeError: Expected object of scalar type Byte but got scalar type Float for argument #2 'mat2'

Please help me with this. Can’t trace the error. Check comments for entire code.

I just realized that I was missing the flattening step. It solved the problem. :sweat_smile: