I am having different errors training my model that supposed to segment a given image into different categories. Right now I just wanna understand what happens in these steps that is usually used in training scripts:
outputs = model(batch_img_train)
          loss = loss_function(outputs, batch_mask_train)
          loss.backward
          optimizer.step()

I just dont understand what is the output of OUTPUTS and what LOSS is gonna do with my OUTPUTS and MASK, i just want to understand its inner working. Can someone explain it?