Description: Determines which elements of a tensor are infinite values, that is, inf or -inf.
Formula:
Example:
- If x = [9, 6, 3], the result of isinf(x) is [False, False, False].
- If x = [[-3.14, inf], [2.7183, nan]], the result of isinf(x) is [[False, True], [False, False]]. Note that integers and Booleans are finite.
Each operator has calls. First, [object Object] is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, [object Object] is called to perform computation.
[object Object]
[object Object]
Parameters:
[object Object]- [object Object]Atlas training products[object Object]: BFLOAT16 is not supported.
Returns:
[object Object]: status code. For details, see .The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
- Deterministic computation:
[object Object]defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]