torch.isreal
- torch.isreal(input) → Tensor
Returns a new tensor with boolean elements representing if each element of
inputis real-valued or not. All real-valued types are considered real. Complex values are considered real when their imaginary part is 0.- Parameters:
input () – the input tensor.