Skip to content

Commit

Permalink
fix arcface performance
Browse files Browse the repository at this point in the history
Change-Id: Iddefa969142b4fbf769a524020beb11b19977996
  • Loading branch information
sailist committed Nov 3, 2024
1 parent 6ce150c commit 5a602cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Dialect/Tpu/Transforms/LayerGroup/CycleCalculator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ int64_t CycleCalculator::getGroupCycle(BasicTimeStepPtr &time_step,
});
}

DEBUG_WITH_TYPE("mc_lg_refactor", {
if(num_core == 8){
loop_num = loop_num / num_core + (loop_num % num_core > 0);
DEBUG_WITH_TYPE("cycle_calc", {
Expand All @@ -331,7 +332,7 @@ int64_t CycleCalculator::getGroupCycle(BasicTimeStepPtr &time_step,
<< "; loop_num = " << loop_num << "\n";
});
}

});

int64_t filling_cycle = 0, kernel_cycle = 0, draining_cycle = 0;
int64_t total_layer_cycle = 0, total_gdma_cycle = 0;
Expand Down

0 comments on commit 5a602cf

Please sign in to comment.