FilesLast commitLast update
18 days ago
3 months ago
9 days ago
9 days ago
4 months ago
1 month ago
9 days ago
1 month ago
17 days ago
README

MaxPool3D

English | 简体中文

Applicable Products

Product Support
Ascend 950PR&950DT products √
Atlas A3 products √
Atlas A2 products √
Atlas 200I/500 A2 inference products x
Atlas inference products √
Atlas training products √

Function

  • Description: Provides the 3D max pooling operation for the input channels of the input signal.
  • Formula:
    • Calculation formula of each element in the output tensor:

      out(Ni,Cj,d,h,w)=max⁡k∈[0,kD−1],m∈[0,kH−1],n∈[0,kW−1]input(Ni,Cj,stride[0]×d+k,stride[1]×h+m,stride[2]×w+n)out(N_i, C_j, d, h, w) = \max\limits_{{k\in[0,k_{D}-1],m\in[0,k_{H}-1],n\in[0,k_{W}-1]}}input(N_i,C_j,stride[0]\times d + k, stride[1]\times h + m, stride[2]\times w + n)

Parameters

Parameter name Input/Output/Attribute Description Data type Data format
x Input Input tensor. FLOAT16, FLOAT, BFLOAT16 ND
ksize Attribute Window size of the max pooling. INT64 -
strides Attribute Stride of the window movement. INT64 -
padding Attribute Specifies the padding mode. STRING -
pads Attribute Number of layers padded on each edge. INT64 -
dilations Attribute Controls the stride of the elements in the window. INT64 -
ceilMode Attribute Rounding mode for computing the output shape. INT64 -
data_fromat Attribute Supported data format STRING -
y Output Output tensor. FLOAT16, FLOAT, BFLOAT16 ND

Constraints

  • Value range restrictions:
    • ksize: The array length must be 5, and the values corresponding to the N and C dimensions must be 1.
    • strides: The array length must be 5, and the values corresponding to the N and C dimensions must be 1.
    • padding: Only three modes are supported: "SAME", "VALID", and "CALCULATED".
    • pads: This parameter takes effect only when the padding mode is "CALCULATED".
    • dilations: The array length must be 5, and the values corresponding to the N and C dimensions must be 1.
    • ceilMode: A value of 0 means False with rounding down, and a non-zero value means True with rounding up. This parameter takes effect only when the padding mode is "CALCULATED".

Invocation Description

Invocation method Sample code Description
Graph mode interface test_max_pool_3d Calls the MaxPool3D operator by building a graph through the IR MaxPool3D.