Skip to content

Commit

Permalink
cpu: x64: pooling: use fp32 accumulator for bf16 max-pooling backprop
Browse files Browse the repository at this point in the history
  • Loading branch information
asimonov1 committed Jan 13, 2025
1 parent d96d26d commit 2820609
Show file tree
Hide file tree
Showing 5 changed files with 389 additions and 92 deletions.
3 changes: 2 additions & 1 deletion src/common/memory_tracking.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2018-2024 Intel Corporation
* Copyright 2018-2025 Intel Corporation
* Copyright 2024-2025 Arm Ltd. and affiliates
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -271,6 +271,7 @@ enum {
key_pool_dst_plain2blocked_cvt,
key_pool_ind_plain2blocked_cvt,
key_pool_src_bf16cvt,
key_pool_src_f32_accum,
key_pool_src_plain2blocked_cvt,
key_pool_reduction,
key_precomputed_scales,
Expand Down
2 changes: 2 additions & 0 deletions src/cpu/x64/jit_primitive_conf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,8 @@ struct jit_pool_conf_t {
bool with_binary;
int nthr;
memory_desc_t tmp_md;
bool needs_f32_accum_for_bf16;
dim_t f32_accum_block_size;
};

struct jit_pool_call_s {
Expand Down
Loading

0 comments on commit 2820609

Please sign in to comment.