Description: Computes the size of each kernel based on the input outputSize, performs 3D max pooling on the input self, and outputs the pooled value outputOut and index indicesOut. The difference between aclnnAdaptiveMaxPool3d and aclnnMaxPool3d is that you only need to specify the outputSize size and divide the pooling region based on the outputSize size.
Formula: For each element at position on the DHW axis in the outputOut tensor, the calculation formula is as follows:
Each operator has calls. First, aclnnAdaptiveMaxPool3dGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnAdaptiveMaxPool3d is called to perform computation.
Parameters:
[object Object]Returns:
aclnnStatus: status code. For details, see .
The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
Deterministic compute:
- aclnnAdaptiveMaxPool3d defaults to a deterministic implementation.
Shape description:
- self.shape = (N, C, Din, Hin, Win)
- outputSize = [Din, Hout, Wout]
- outputOut.shape = (N, C, Din, Hout, Wout)
- indicesOut.shape = (N, C, Din, Hout, Wout)
The following example is for reference only. For details, see .