Suppose I have a numpy array as follows
DeviceArray([[ True, False, True],
[False, False, False],
[ True, True, True]], dtype=bool)
As we can see the second row is all false, since all of the elements of the second row is false we want to transform all of it to True such as
DeviceArray([[ True, False, True],
[True, True, True],
[ True, True, True]], dtype=bool)
I can do this with for loop, but I am looking something which will be efficient