- Function: Returns a new tensor with Boolean elements, indicating whether the given self and other are close to each other. If the values are close, True is returned. Otherwise, False is returned.
- Formulas: Returns a new tensor out, whose data type is BOOL, indicating whether each element of the input self is close to the corresponding element of the input other. Closeness is defined as follows: The preceding formula is valid when both self and other are finite values. When both self and other are non-finite, the result is True only if they are equal. If equal_nan is True, NaNs are considered close. If equal_nan is False, NaNs are considered not close.
Each operator has calls. First, aclnnIsCloseGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnIsClose is called to perform computation.
[object Object]
[object Object]
Parameter description:
[object Object]- [object Object]Atlas training products[object Object] and [object Object]Atlas inference products[object Object]: BFLOAT16 is not supported.
Returns
[object Object]: status code. For details, see .The first-phase API implements input parameter validation. The following error codes may be returned.
[object Object]
- Deterministic computation:
- The default deterministic implementation of aclnnIsClose is used.
The following example is for reference only. For details, see .
[object Object]