@@ -411,7 +411,7 @@ int time() {
411411 float initial_loss;
412412 caffe_net.Forward (&initial_loss);
413413 LOG (INFO) << " Initial loss: " << initial_loss;
414- if (!FLAGS_forward_only){
414+ if (!FLAGS_forward_only){
415415 LOG (INFO) << " Performing Backward" ;
416416 caffe_net.Backward ();
417417 }
@@ -442,7 +442,7 @@ int time() {
442442 forward_time_per_layer[i] += timer.MicroSeconds ();
443443 }
444444 forward_time += forward_timer.MicroSeconds ();
445- if (!FLAGS_forward_only) {
445+ if (!FLAGS_forward_only) {
446446 backward_timer.Start ();
447447 for (int i = layers.size () - 1 ; i >= 0 ; --i) {
448448 timer.Start ();
@@ -453,27 +453,27 @@ int time() {
453453 backward_time += backward_timer.MicroSeconds ();
454454 LOG (INFO) << " Iteration: " << j + 1 << " forward-backward time: "
455455 << iter_timer.MilliSeconds () << " ms." ;
456- } else {
457- LOG (INFO) << " Iteration: " << j + 1 << " forward time: "
456+ } else {
457+ LOG (INFO) << " Iteration: " << j + 1 << " forward time: "
458458 << iter_timer.MilliSeconds () << " ms." ;
459- }
459+ }
460460 }
461461 LOG (INFO) << " Average time per layer: " ;
462462 for (int i = 0 ; i < layers.size (); ++i) {
463463 const caffe::string& layername = layers[i]->layer_param ().name ();
464464 LOG (INFO) << std::setfill (' ' ) << std::setw (10 ) << layername <<
465465 " \t forward: " << forward_time_per_layer[i] / 1000 /
466466 FLAGS_iterations << " ms." ;
467- if (!FLAGS_forward_only) {
467+ if (!FLAGS_forward_only) {
468468 LOG (INFO) << std::setfill (' ' ) << std::setw (10 ) << layername <<
469469 " \t backward: " << backward_time_per_layer[i] / 1000 /
470470 FLAGS_iterations << " ms." ;
471- }
471+ }
472472 }
473473 total_timer.Stop ();
474474 LOG (INFO) << " Average Forward pass: " << forward_time / 1000 /
475475 FLAGS_iterations << " ms." ;
476- if (!FLAGS_forward_only) {
476+ if (!FLAGS_forward_only) {
477477 LOG (INFO) << " Average Backward pass: " << backward_time / 1000 /
478478 FLAGS_iterations << " ms." ;
479479 LOG (INFO) << " Average Forward-Backward: " << total_timer.MilliSeconds () /
0 commit comments