GlobalLpPool - 1 vs 2

Next section compares an older to a newer version of the same operator after both definition are converted into markdown text. Green means an addition to the newer version, red means a deletion. Anything else is unchanged.

Files changed (1) hide show
  1. GlobalLpPool1 → GlobalLpPool2 +5 -5
GlobalLpPool1 → GlobalLpPool2 RENAMED
@@ -1 +1 @@
1
- GlobalLpPool consumes an input tensor X and applies lp pool pooling across the
1
+ GlobalLpPool consumes an input tensor X and applies lp pool pooling across
2
2
  the values in the same channel. This is equivalent to LpPool with kernel size
3
3
  equal to the spatial dimension of input tensor.
4
4
  ### Attributes
5
- * **p - FLOAT** (default is '2.0'):
5
+ * **p - INT** (default is '2'):
6
- p value of the Lp norm used to pool over the input data, default is 2.0.
6
+ p value of the Lp norm used to pool over the input data.
7
7
  ### Inputs
8
8
  - **X** (heterogeneous) - **T**:
9
- Input data tensor from the previous operator; dimensions for image case are (N x C x H x W), where N is the batch size, C is the number of channels, and H and W are the height and the width of the data. For non image case, the dimension are in the form of (N x C x D1 x D2 ... Dn), where N is the batch size.
9
+ Input data tensor from the previous operator; dimensions for image case are (N x C x H x W), where N is the batch size, C is the number of channels, and H and W are the height and the width of the data. For non image case, the dimensions are in the form of (N x C x D1 x D2 ... Dn), where N is the batch size.
10
10
  ### Outputs
11
11
  - **Y** (heterogeneous) - **T**:
12
- Output data tensor from pooling across the input tensor. Dimensions will be N x C x 1 x 1
12
+ Output data tensor from pooling across the input tensor. The output tensor has the same rank as the input. The first two dimensions of output shape are the same as the input (N x C), while the other dimensions are all 1.
13
13
  ### Type Constraints
14
14
  * **T** in ( tensor(double), tensor(float), tensor(float16) ):
15
15
  Constrain input and output types to float tensors.