Skip to content

Commit

Permalink
#18332: Update BN Kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
VirdhatchaniKN committed Feb 26, 2025
1 parent 9551849 commit 92f6e24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,7 @@ void MAIN {
weight_has_value,
bias_has_value);
}

cb_pop_front(cb_eps, onetile);
}
} // namespace NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ ALWI void batchnorm_bcast_tiles(

add_binary_tile_init();
rsqrt_tile_init();
tile_regs_acquire();
tile_regs_wait();
copy_tile_to_dst_init_short_with_dt(cb_eps, cb_batch_var);
for (uint32_t i = 0; i < onetile; ++i) {
copy_tile(cb_batch_var, i, i * 2);
Expand All @@ -76,9 +78,8 @@ ALWI void batchnorm_bcast_tiles(

add_binary_tile(i * 2, i * 2 + 1);
rsqrt_tile(i * 2);
tile_regs_commit();

tile_regs_wait();
tile_regs_commit();
pack_tile(i * 2, cb_den);
}
tile_regs_release();
Expand Down Expand Up @@ -238,5 +239,7 @@ void MAIN {
weight_has_value,
bias_has_value);
}

cb_pop_front(cb_eps, onetile);
}
} // namespace NAMESPACE

0 comments on commit 92f6e24

Please sign in to comment.