Skip to content

Commit

Permalink
bug fix on network load
Browse files Browse the repository at this point in the history
  • Loading branch information
daelsepara committed Feb 27, 2019
1 parent d6796d5 commit fff76eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DeepNeuralNetworkClassifier/ModelJSON.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static ManagedDNN DeserializeDNN(string json, ManagedArray normalization)
for (var layer = 0; layer < model.Weights.Count; layer++)
{
network.Weights[layer] = Set(model.Weights[layer]);
network.Layers[layer] = new HiddenLayer(network.Weights[layer].x - 1, network.Weights[layer].y);
network.Layers.Add(new HiddenLayer(network.Weights[layer].x - 1, network.Weights[layer].y));
}

if (model.Normalization != null)
Expand Down

0 comments on commit fff76eb

Please # to comment.