static public TorchTensor AdaptiveAvgPool2D(TorchTensor x, long[] kernelSize) { using (var d = Modules.AdaptiveAvgPool2D(kernelSize)) { return(d.Forward(x)); } }