From: Дилшоджон Пошшоев/AI Tools Lab /SRR/Engineer/삼성전자 Date: Mon, 19 Aug 2019 02:15:33 +0000 (+0300) Subject: [neurun] Clearify Scheduler::ESTAndExecTime with comments (#6649) X-Git-Tag: accepted/tizen/unified/20190903.052428~344 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5f91ad298851b7f7b7e1e50c62162758f803f1c;p=platform%2Fcore%2Fml%2Fnnfw.git [neurun] Clearify Scheduler::ESTAndExecTime with comments (#6649) Add comments to clearify return values in case of non-parallel-executor Signed-off-by: Poshshoev Dilshodzhon --- diff --git a/runtimes/neurun/core/src/compiler/Scheduler.cc b/runtimes/neurun/core/src/compiler/Scheduler.cc index bbdab80..6480f2f 100644 --- a/runtimes/neurun/core/src/compiler/Scheduler.cc +++ b/runtimes/neurun/core/src/compiler/Scheduler.cc @@ -503,7 +503,11 @@ Scheduler::ESTAndExecTime(const backend::Backend *backend, const model::Operatio _backends_avail_time[cpu_backend].erase(it); } - // In case non-parallel executor measure just exec time and data transfer time + /* In case non-parallel executor measure just exec time and data transfer time + * because EFT(prev_op_ft) is the same for all backends. Since two operations + * can't be run simultaneously, finish of running operation must be waited for. + * When an operation starts, all backends are free. So, they need time just for + * data transfer.*/ if (!is_parallel_exec) { VERBOSE(Scheduler::ESTAndExecTime)