Skip to content

Commit

Permalink
Fix syntax errors introduced by last commit (regression)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jul 5, 2018
1 parent cf6c79d commit 787bde5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lstm/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand All @@ -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;
Expand Down

0 comments on commit 787bde5

Please sign in to comment.