Skip to content

Commit 86a6ef6

Browse files
vksnkxnnpack-bot
authored andcommitted
Move comment to a right place.
PiperOrigin-RevId: 831493868
1 parent c330ac9 commit 86a6ef6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ynnpack/subgraph/runtime.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ std::unique_ptr<ynn::scheduling_info> ynn_runtime::make_schedule(
8787
// Enough tasks to have good load balancing.
8888
slinky::index_t target_task_count = max_threads > 1 ? max_threads * 2 : 1;
8989

90-
// Area is selected such that tiles fit better into cache, this is a
91-
// constant for now, but we could add a more advanced logic based on
92-
// hardware info.
9390
assert(dims.size() == output->rank() || dims.size() + 1 == output->rank());
9491
// For min_max reductions dims.size() + 1 == output.rank().
9592
// Otherwise, dims.size() == output->rank().
@@ -100,6 +97,9 @@ std::unique_ptr<ynn::scheduling_info> ynn_runtime::make_schedule(
10097
}
10198
assert(output->rank() == output_extents.size());
10299

100+
// Area is selected such that tiles fit better into cache, this is a
101+
// constant for now, but we could add a more advanced logic based on
102+
// hardware info.
103103
slinky::expr tile_area = slinky::ceil_div(slinky::expr(32768 * 4),
104104
output->elem_size() * element_cost);
105105
std::vector<slinky::expr> splits(rank);

0 commit comments

Comments
 (0)