public static Function PoolingLayer(PoolingParams parameters, Variable convolutionFunction) { return(CNTKLib.Pooling( convolutionFunction, parameters.Type, parameters.PoolingWindow.AsArray(), parameters.Stride.AsArray(), new[] { true })); }
public static ConvolutionalNeuralNetworkConfiguration AppendPoolingLayer (this ConvolutionalNeuralNetworkConfiguration config, PoolingParams parameters) { return(config.AppendUsingPreviousStep(prevStep => PoolingLayer(parameters, prevStep), "Pooling Layer")); }