Thanks Thomas for you reply.
I cannot solve it. Suppose we have torch.randn(1, 2, 256, 256).to(‘cpu’) that includes 2 channels with probability. First off, how we convert it to (1, 256, 256) and where we have to apply it in the network? I mean in the loss function or in the learner?