AdaptiveMaxPool3d¶
- class torch.nn.AdaptiveMaxPool3d(output_size, return_indices=False)[源代码]¶
- 对由多个输入平面组成的输入信号应用3D自适应最大池化。 - 输出的大小为 ,对于任何输入大小。 输出特征的数量等于输入平面的数量。 - Parameters
 - Shape:
- 输入: 或 . 
- 输出: 或 , 其中 。 
 
 - 示例 - >>> # 目标输出尺寸为5x7x9 >>> m = nn.AdaptiveMaxPool3d((5, 7, 9)) >>> input = torch.randn(1, 64, 8, 9, 10) >>> output = m(input) >>> # 目标输出尺寸为7x7x7(立方体) >>> m = nn.AdaptiveMaxPool3d(7) >>> input = torch.randn(1, 64, 10, 9, 8) >>> output = m(input) >>> # 目标输出尺寸为7x9x8 >>> m = nn.AdaptiveMaxPool3d((7, None, None)) >>> input = torch.randn(1, 64, 10, 9, 8) >>> output = m(input) 
