mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-05 02:47:00 +08:00
Merge pull request #1761 from srdg/patch-1
Fixed "Invalid F spec" error while building FullyConnected layer.
This commit is contained in:
commit
71bb9c373b
@ -426,7 +426,7 @@ Network* NetworkBuilder::ParseFullyConnected(const StaticShape& input_shape,
|
||||
tprintf("Invalid nonlinearity on F-spec!: %s\n", *str);
|
||||
return nullptr;
|
||||
}
|
||||
int depth = strtol(*str + 1, str, 10);
|
||||
int depth = strtol(*str + 2, str, 10);
|
||||
if (depth <= 0) {
|
||||
tprintf("Invalid F spec!:%s\n", *str);
|
||||
return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user