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