Esempio n. 1
0
 public static Function ConvolutionLayer(ConvolutionParams parameters, Variable features, DeviceDescriptor device)
 {
     return(CNTKLib.Convolution(
                new Parameter(parameters.AsArray(), DataType.Float, CNTKLib.GlorotUniformInitializer(CONV_W_SCALE, -1, 2), device),
                features,
                parameters.Stride.AsArray()));
 }
Esempio n. 2
0
 public static ConvolutionalNeuralNetworkConfiguration AppendConvolutionLayer(this ConvolutionalNeuralNetworkConfiguration config,
                                                                              ConvolutionParams parameters, DeviceDescriptor device)
 {
     return(config.AppendUsingPreviousStep(prevStep => ConvolutionLayer(parameters, prevStep, device), "Convolution Layer"));
 }