Hi @Usama_Hasan,
Thank you for your reply. I tryed your suggestion, but I got a new error mismatch in which I am not able to find the mistake
This error
size mismatch, m1: [512 x 505], m2: [512 x 505]
change to this
size mismatch, m1: [512 x 517], m2: [512 x 505]