Could you please use a translation service, which would make it easier to support you? 
Print the shapes of all tensors for the accuracy calculation via:
print(pred_cls.shape)
print(...)

so that we can have a look at the calculation.
Also, you can post your code here directly by wrapping it into three backticks ```.