Skip to content

Commit f333bb8

Browse files
tczeszunvpirogov
authored andcommitted
cpu: ref_resampling: fix sum post-op
1 parent ec0b2ee commit f333bb8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cpu/ref_resampling.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2019-2022 Intel Corporation
2+
* Copyright 2019-2023 Intel Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,6 +22,7 @@
2222
#include "common/math_utils.hpp"
2323
#include "common/type_helpers.hpp"
2424

25+
#include "cpu/ref_io_helper.hpp"
2526
#include "cpu/resampling_utils.hpp"
2627

2728
#include "cpu/ref_resampling.hpp"
@@ -195,7 +196,7 @@ void ref_resampling_fwd_t::execute_forward(const exec_ctx_t &ctx) const {
195196
args.ctx = &ctx;
196197
args.dst_md = pd()->dst_md();
197198
args.l_offset = data_l_off;
198-
args.dst_val = dst[data_p_off];
199+
args.dst_val = io::load_float_value(dst_dt, dst, data_p_off);
199200
ref_post_ops_.execute(res, args);
200201

201202
store_fn(res, dst, data_p_off);

0 commit comments

Comments
 (0)