inst_data is a mask image with one channel passed as a tensor with size
torch.Size([1, 1, 2016, 1512])

When I try
 mapping_input =  torch.rand(1, 64, 504, 378).to("cuda"), torch.rand(1, 1, 2016, 1512).to("cuda")
I’ve got this error instead:
cannot perform reduction function max on tensor with no elements because the operation does not have an identity
Is there any way of tracing this?