Multidimensional filling in a N dimensional tensor

Hi Martin!

In a reply to a similar question, I showed how to create a “zero-mask” from
a batch of bounding boxes. You should be able to do the same, but convert
the “zero-mask” to a “one-mask” with logical_not().

Here is the relevant post:

Best.

K. Frank

1 Like