Function: After NANs are ignored, the median and position of the specified dimension of the tensor are returned.
Example:
Example 1:
[object Object]Example 2:
[object Object]Example 3:
[object Object]Example 4:
[object Object]
Each operator has calls. First, aclnnNanMedianDimGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnNanMedianDim is called to perform computation.
[object Object]
[object Object]
Parameters:
[object Object]- [object Object]Atlas training products[object Object]: The data type cannot be BFLOAT16.
Returns
[object Object]: status code. For details, see .The first-phase API implements input parameter verification. The following errors may be thrown:
[object Object]
- Parameters
- If the data type of self is not FLOAT, FLOAT16, or BFLOAT16, the operator execution may time out due to an overlarge tensor size (an AI CPU error is reported, with reason=[aicpu timeout]). The maximum size for each data type (closely related to the remaining memory of the machine) is as follows:
- INT64: 150000000
- UINT8, INT8, INT16, INT32: 725000000
The following example is for reference only. For details, see .
[object Object]