Exemplo n.º 1
0
 /// <summary>
 /// Applies a 2D adaptive max pooling over an input signal composed of several input planes.
 /// The output is of size H x W, for any input size.The number of output features is equal to the number of input planes.
 /// </summary>
 /// <param name="x"></param>
 /// <param name="outputSize">Applies a 2D adaptive max pooling over an input signal composed of several input planes.
 /// The output is of size H x W, for any input size.The number of output features is equal to the number of input planes.</param>
 /// <returns></returns>
 static public TorchTensor AdaptiveMaxPool2d(TorchTensor x, long[] outputSize)
 {
     using (var d = Modules.AdaptiveMaxPool2d(outputSize)) {
         return(d.forward(x));
     }
 }