"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "7ad0485aceff89b192a515320f839bdae4a9ad94"
Unverified Commit 42e6ace8 authored by Adrià Arrufat's avatar Adrià Arrufat Committed by GitHub
Browse files

Minor fix in the network size format (#2303)

Since we are dividing by 1024, the unit should be MiB instead of MB.
I also added a space between the number and the unit
parent 9f6aefc0
...@@ -1363,7 +1363,7 @@ namespace dlib ...@@ -1363,7 +1363,7 @@ namespace dlib
net_type temp = trainer.get_net(); // make a copy so that we can clean it without mutating the trainer's net. net_type temp = trainer.get_net(); // make a copy so that we can clean it without mutating the trainer's net.
temp.clean(); temp.clean();
serialize(temp, sout); serialize(temp, sout);
out << " net size: " << sout.str().size()/1024.0/1024.0 << "MB" << endl; out << " net size: " << sout.str().size()/1024.0/1024.0 << " MiB" << endl;
// Don't include the loss params in the hash since we print them on the next line. // Don't include the loss params in the hash since we print them on the next line.
// They also aren't really part of the "architecture" of the network. // They also aren't really part of the "architecture" of the network.
out << " net architecture hash: " << md5(cast_to_string(trainer.get_net().subnet())) << endl; out << " net architecture hash: " << md5(cast_to_string(trainer.get_net().subnet())) << endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment