Thank KFrank,
So, given target of [1 * 1 * 10 * 10] and output from the network as [ 1 * 1 * 10 * 10]. I understood the loss would be given by (assuming the reduction is mean):

Where M and N are the height (value of 10) and width (value of 10) in our case. Am I correct in this regard?