mindspore.mint.isneginf
- mindspore.mint.isneginf(input)[source]
Return whether each element in the input is a negative infinity number.
Warning
This API can be used only on the Atlas A2 training series.
- Parameters
input (Tensor) – The input tensor.
- Returns
Tensor
- Supported Platforms:
Ascend
Examples
>>> import mindspore >>> output = mindspore.mint.isneginf(mindspore.tensor([[-float("inf"), float("inf")], [1, -float("inf")]], dtype=mindspore.float32)) >>> print(output) [[ True False] [False True]]