mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-13 16:09:04 +08:00
Merge pull request #1747 from stweil/fix
Fix syntax errors introduced by last commit (regression)
This commit is contained in:
commit
d27f5b58f9
@ -258,6 +258,7 @@ Network* Network::CreateFromFile(TFile* fp) {
|
|||||||
network = new FullyConnected(stub.name_, stub.ni_, stub.no_, stub.type_);
|
network = new FullyConnected(stub.name_, stub.ni_, stub.no_, stub.type_);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
;
|
||||||
}
|
}
|
||||||
if (network) {
|
if (network) {
|
||||||
network->training_ = stub.training_;
|
network->training_ = stub.training_;
|
||||||
@ -266,7 +267,7 @@ Network* Network::CreateFromFile(TFile* fp) {
|
|||||||
network->num_weights_ = stub.num_weights_;
|
network->num_weights_ = stub.num_weights_;
|
||||||
if (!network->DeSerialize(fp)) {
|
if (!network->DeSerialize(fp)) {
|
||||||
delete network;
|
delete network;
|
||||||
network = nullptr;
|
network = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return network;
|
return network;
|
||||||
|
Loading…
Reference in New Issue
Block a user