What is pytorch opposite of nonzero
The nonzero in PyTorch return the indexes of non-zero elements.
tensor([ True, False,  True,  True,  True,  True,  True, False,  True, False])
tensor([0, 2, 3, 4, 5, 6, 8])

What is the opposite of it? To get indexes of all zeros?

(x == 0).nonzero()

Simply reforming the nonzero function.
