mask, ignore_index=250) # self.log("val_loss", loss_val, on_step=True, on_epoch=True) # Metrics output_mask = torch.nn.functional.softmax( out.to(torch.float32), dim=1 ) output_mask = torch.argmax(output