/// <summary> /// Applies a 2D adaptive average 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">The input signal tensor.</param> /// <param name="outputSize">The target output size (H,W) of the image of the form H x W.</param> /// <returns></returns> static public TorchTensor AdaptiveAvgPool2d (TorchTensor x, long[] outputSize) { using (var d = Modules.AdaptiveAvgPool2d (outputSize)) { return d.forward (x); } }