oH for a square image oH x oH
  * **output_ratio** (*Union**[**float**, **Tuple**[**float**,
    **float**]**]*) -- If one wants to have an output size as a
    ratio of the input size, this option can be given. This has to
    be a number or tuple in the range (0, 1)

  * **return_indices** (*bool*) -- if "True", will return the
    indices along with the outputs. Useful to pass to
    "nn.MaxUnpool2d()". Default: "False"

Shape:
      * Input: (N, C, H_{in}, W_{in}) or (C, H_{in}, W_{in}).
  * Output: (N, C, H_{out}, W_{out}) or (C, H_{out}, W_{out}),
    where (H_{out}, W_{out})=\text{output\_size} or (H_{out},
    W_{out})=\text{output\_ratio} \times (H_{in}, W_{in}).

-[ Examples ]-



pool of square window of size=3, and target output size 13x12
m = nn.FractionalMaxPool2d(3, output_size=(13, 12))
pool of square window and target output size being half of input image size


