As mentioned here, the loss_calculator.py needs to adjust to use modified version of the views designed for losses.
loss_calculator.py
approve @ds @shinde @laurens