示例#1
0
 public static LayerFactory FullyConnected(
     int neurons, ActivationFunctionType activation, CostFunctionType cost,
     WeightsInitializationMode weightsMode = WeightsInitializationMode.GlorotUniform, BiasInitializationMode biasMode = BiasInitializationMode.Zero)
 => input => new OutputLayer(input, neurons, activation, cost, weightsMode, biasMode);
示例#2
0
 public static LayerFactory Softmax(
     int outputs,
     WeightsInitializationMode weightsMode = WeightsInitializationMode.GlorotUniform, BiasInitializationMode biasMode = BiasInitializationMode.Zero)
 => input => new SoftmaxLayer(input, outputs, weightsMode, biasMode);
示例#3
0
 public static LayerFactory Inception(InceptionInfo info, BiasInitializationMode biasMode = BiasInitializationMode.Zero)
 => input => new CuDnnInceptionLayer(input, info, biasMode);