[object Object][object Object][object Object]undefined
[object Object]
  • This API performs 3D average pooling on the input tensor with the kernel size of kDkHkWkD * kH * kW and the stride of sDsHsWsD * sH * sW. kk is the kernel size, indicating the size of the pooling window. ss is the stride, indicating the stride of the pooling operation.
  • Formula: The relationship among the input(N,C,Din,Hin,WinN,C,D_{in},H_{in},W_{in}), out(N,C,Dout,Hout,WoutN,C,D_{out},H_{out},W_{out}), pooling stride (stridestride), and kernelSize (kD,kH,kWkD,kH,kW) is as follows:Dout=Din+2padding[0]kernelSize[0]stride[0]+1D_{out}=\lfloor \frac{D_{in}+2*padding[0]-kernelSize[0]}{stride[0]}+1 \rfloor Hout=Hin+2padding[1]kernelSize[1]stride[1]+1H_{out}=\lfloor \frac{H_{in}+2*padding[1]-kernelSize[1]}{stride[1]}+1 \rfloor Wout=Win+2padding[2]kernelSize[2]stride[2]+1W_{out}=\lfloor \frac{W_{in}+2*padding[2]-kernelSize[2]}{stride[2]}+1 \rfloor out(Ni,Ci,d,h,w)=1kDkHkWk=0kD1m=0kH1n=0kW1input(Ni,Ci,stride[0]d+k,stride[1]h+m,stride[2]w+n)out(N_i,C_i,d,h,w)=\frac{1}{kD*kH*kW}\sum_{k=0}^{kD-1}\sum_{m=0}^{kH-1}\sum_{n=0}^{kW-1}input(N_i,C_i,stride[0]*d+k,stride[1]*h+m,stride[2]*w+n)
[object Object]

Each operator has calls. First, aclnnAvgPool3dGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnAvgPool3d is called to perform computation.

[object Object]
[object Object]
[object Object]
  • Parameters:

    [object Object]
    • For the [object Object]Atlas inference products[object Object], the data types of the self and out parameters do not support 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]
[object Object]
  • Parameters:

    [object Object]
  • Returns:

    [object Object]: status code. For details, see .

[object Object]
  • Deterministic compute:
    • aclnnAvgPool3d defaults to a deterministic implementation.
[object Object]

The following example is for reference only. For details, see .

[object Object]