Description: Computes the maximum element value of an input tensor on a specified dimension.
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]
Parameter description:
[object Object](aclTensor*, compute input): input tensor for computation. are supported. The can be ND.- [object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training series products/Atlas A3 inference series products[object Object]: FLOAT, FLOAT16, INT8, INT16, INT32, INT64, UINT8, DOUBLE, BOOL, or BFLOAT16.
- [object Object]Atlas inference series products[object Object] and [object Object]Atlas training series products[object Object]: FLOAT, FLOAT16, INT8, INT16, INT32, INT64, UINT8, DOUBLE, or BOOL.
[object Object](aclIntArray*, compute input): dimensions for computation. The value range is [–self.dim(), self.dim() – 1]. The data type can be INT64.[object Object](bool, compute input): whether to retain the dimensions of the reduced axis. The data type can be BOOL.[object Object](bool, compute input): defines the behavior when the[object Object]is empty. If this parameter is set to[object Object], no reduction occurs, and the output tensor remains identical to the input tensor. If set to[object Object], all axes are reduced. The supported data type can be BOOL.[object Object](aclTensor*, compute output): output tensor. The data type of out must be the same as that of self. are supported. The can be ND.- [object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training series products/Atlas A3 inference series products[object Object]: FLOAT, FLOAT16, INT8, INT16, INT32, INT64, UINT8, DOUBLE, BOOL, or BFLOAT16.
- [object Object]Atlas inference series products[object Object] and [object Object]Atlas training series products[object Object]: FLOAT, FLOAT16, INT8, INT16, INT32, INT64, UINT8, DOUBLE, or BOOL.
[object Object](uint64_t*, output): size of the workspace to be allocated on the device.[object Object](aclOpExecutor**, output): operator executor, containing the operator computation process.
Returns:
Parameter description:
[object Object](void*, input): address of the workspace to be allocated on the device.[object Object](uint64_t, input): size of the workspace to be allocated on the device, which is obtained by the first-phase API[object Object].[object Object](aclOpExecutor*, input): operator executor, containing the operator computation process.[object Object](aclrtStream, input): stream for executing the task.
Returns:
Deterministic computation:
[object Object]defaults to a deterministic implementation.
When the input
[object Object]is of the tensor type, the reduced axis cannot be[object Object].
The following example is for reference only. For details, see .