Exemplo n.º 1
0
 public LeNetSnapshot(LeNetNetwork network)
 {
     Network = network;
     Input = new StepSnapshot(network.InputStep);
     FirstConvolutions = network.FirstConvolutions.Select(step => new StepSnapshot(step)).ToList().AsReadOnly();
     FirstSubsampling = network.FirstSubsampling.Select(step => new StepSnapshot(step)).ToList().AsReadOnly();
     SecondConvolutions = network.SecondConvolutions.Select(step => new StepSnapshot(step)).ToList().AsReadOnly();
     SecondSubsampling = network.SecondSubsampling.Select(step => new StepSnapshot(step)).ToList().AsReadOnly();
     Consolidation = new StepSnapshot(network.ConsolidationStep, 1);
     Output = new StepSnapshot(network.OutputStep, LeNetConfigurations.OutputWidth);
 }
Exemplo n.º 2
0
 public LeNetSnapshot(LeNetNetwork network)
 {
     Network            = network;
     Input              = new StepSnapshot(network.InputStep);
     FirstConvolutions  = network.FirstConvolutions.Select(step => new StepSnapshot(step)).ToList().AsReadOnly();
     FirstSubsampling   = network.FirstSubsampling.Select(step => new StepSnapshot(step)).ToList().AsReadOnly();
     SecondConvolutions = network.SecondConvolutions.Select(step => new StepSnapshot(step)).ToList().AsReadOnly();
     SecondSubsampling  = network.SecondSubsampling.Select(step => new StepSnapshot(step)).ToList().AsReadOnly();
     Consolidation      = new StepSnapshot(network.ConsolidationStep, 1);
     Output             = new StepSnapshot(network.OutputStep, LeNetConfigurations.OutputWidth);
 }