I have set of masks corresponding to 10 different objects from an input image (shapes and sizes below)
masks.shape:  torch.Size([10, 240, 320, 1])
masks[0].shape: torch.Size([240, 320, 1])
masks[0][:,:,0].shape:  torch.Size([240, 320])

How do I produce union (logical or) of the these masks using torch tensor operation? Something along the lines of combining all the masks to develop single mask.
Thank you.