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.
and so on until 9 index (or alternatively use the loop)?
This code is running on cuda/GPU. Is there any operation which can be applied to whole stack of tensors (i.e. 10 tensors in this case)? I mean element wise ORing of all 10 tensors