I'm trying to make sure I understand how my cost function is working as my model doesn't seem to be great so I've taken the cost from one mini-batch and tried to manually calculate it to see if I get the same cost. The cost given by Tensorflow is 0.48568. But in my manual attempt below I am getting 0.2109.
As a side note I referred to this to help me figure out the manual calcs.