예제 #1
0
 /// <summary>
 /// Applies a 1D adaptive max pooling over an input signal composed of several input planes.
 /// The output size is H, 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">The target output size H.</param>
 /// <returns></returns>
 static public TorchTensor AdaptiveMaxPool1d(TorchTensor x, long[] outputSize)
 {
     using (var d = Modules.AdaptiveMaxPool1d(outputSize)) {
         return(d.forward(x));
     }
 }