Actually, I wanted to know which operation is going wrong.can you point me, which matmul calculation is wrong.

Should not use numpy.sum()? Is this the one…

Sorry, still i am not getting which line is wrong.