Fix syntax errors introduced by last commit (regression)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-07-05 07:34:04 +02:00
parent cf6c79d842
commit 787bde5630

View File

@ -258,6 +258,7 @@ Network* Network::CreateFromFile(TFile* fp) {
network = new FullyConnected(stub.name_, stub.ni_, stub.no_, stub.type_);
break;
default:
;
}
if (network) {
network->training_ = stub.training_;
@ -266,7 +267,7 @@ Network* Network::CreateFromFile(TFile* fp) {
network->num_weights_ = stub.num_weights_;
if (!network->DeSerialize(fp)) {
delete network;
network = nullptr;
network = nullptr;
}
}
return network;