Skip to content

Commit

Permalink
src: cpu: ref: prelu: add definition init
Browse files Browse the repository at this point in the history
  • Loading branch information
msotoflo authored and tprimak committed Nov 16, 2021
1 parent 7c79bd3 commit 2597b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpu/ref_prelu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static dim_t offset(const memory_desc_wrapper &mem, dims_t dims) {

static dim_t weights_offset(
const int mask, const memory_desc_wrapper &mem, dims_t &dims) {
dims_t dims_w;
dims_t dims_w {};
std::copy(dims, dims + max_supported_ndims, dims_w);
utils::apply_mask_on_dims(dims_w, mem.ndims(), mask);
return offset(mem, dims_w);
Expand Down

0 comments on commit 2597b4b

Please sign in to comment.