Fixed a bug in mlp::net::load() that prevented loading of multiple nets
from the same stream.
This commit is contained in:
parent
7863168b69
commit
b0969cf3d4
1 changed files with 3 additions and 1 deletions
|
|
@ -251,10 +251,12 @@ namespace mlp {
|
|||
init (num_inputs,num_outputs,layer_sizes);
|
||||
// skip forward to pass up opening '<' char
|
||||
char c=' ';
|
||||
while (c!='<') { is >> c;}
|
||||
while (c!='<' && !is.eof()) { is >> c;}
|
||||
for (iterator l =begin() ; l != end(); l++) {
|
||||
is >> *l;
|
||||
}
|
||||
do { is >> c; } while (c == ' ' && !is.eof());
|
||||
assert(c == '>');
|
||||
}
|
||||
|
||||
void init( unsigned num_inputs,
|
||||
|
|
|
|||
Reference in a new issue