Any body know about confusion matrix calculation for cnn model

You could use the sklearn implementation or the code from this post.