Here’s the code for MSELoss 11.
Also of interest is the THTensorApply 10 file. MSELoss is implemented with a “pointwise apply” operation: depending on the contiguity of the inputs, it’ll pick a different code path.