Fixed a bug in mlp::net::load() that prevented loading of multiple nets

from the same stream.
This commit is contained in:
stevemadere 2004-05-21 01:44:32 +00:00
commit b0969cf3d4

View file

@ -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,