NonZeroΒΆ
Returns a tensor containing the indices of all non-zero elements of input.
Abstract Signature:
NonZero(input: Tensor)
PyTorch
API:
torch.nonzeroStrategy: Macro 'torch.nonzero({a}, as_tuple=True)'
Returns a tensor containing the indices of all non-zero elements of input.
Abstract Signature:
NonZero(input: Tensor)
torch.nonzero