From df20004cae62bc1ce56b12015c608aec73a7aa97 Mon Sep 17 00:00:00 2001 From: CoderSherlock Date: Mon, 11 Oct 2021 15:16:41 -0400 Subject: [PATCH] Added new trace code for batch time record --- dlib/dnn/syncer/syncer_worker.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlib/dnn/syncer/syncer_worker.h b/dlib/dnn/syncer/syncer_worker.h index cbab5861..96d2e547 100644 --- a/dlib/dnn/syncer/syncer_worker.h +++ b/dlib/dnn/syncer/syncer_worker.h @@ -135,6 +135,7 @@ namespace dlib // TODO: check if trainer is busy, if then wait until it become idle. // Request a task fit its computability + this->logger->log(this->me.number, this->me.number, 0, "AB - a start of AB"); network::msgheader req_header, res_header; task_op req_task, res_task; dataset local_training; @@ -269,6 +270,7 @@ namespace dlib std::cout << "Learning rate is " << this->trainer->learning_rate << std::endl; std::cout << "Time for batch is " << std::chrono::duration_cast(system_clock::now() - batch_time).count() << std::endl; // *_* + this->logger->log(this->me.number, this->me.number, 1, "AB - a start of AB"); return 1; }