Save BoolTensor to image

I have the tensor like below.

tensor([[False, False, False, ..., False, False, False].
           [False, False, False, ..., False, False, False].
           ......,
           [False, False, False, ..., False, False, False].
           [False, False, False, ..., False, False, False].
           [False, False, False, ..., False, False, False]])

torch.Size([15.480,640])

How can I save this tensor to 15 Black-and White image?

What do you mean by “save”?
If you would like to mask the images at the False positions, you could simply multiply both tensors:

mask = torch.randn(2, 4, 4) > 0.
imgs = torch.randn(2, 4, 4)

masked_imgs = imgs * mask