As the title, how can I implement a mask tensor with libtorch written in python such as:
mask_ = (box[:, 3] <= box[:, 1]) | (box[:, 2] <= box[:, 0])

I’ve done with indexing but I’ve struggled with “|” operator.
mask_ = box.select(1, 3) <= box.select(1, 1);