Binary segmentation for dice loss and softmax output

Hello, I have been researching medical image segmentation.

I have segmented tumor and non tumor(background)
my model’s output(nnUNet) is 2channel and softmax
my label consist of B,1,H,W,D

How can I calculate Dice coeffcient loss function?