Skip to content

Commit 5ac2a40

Browse files
author
dmitrygo
committed
Fixed ODR violataion
1 parent 22e2744 commit 5ac2a40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cpu/x64/jit_uni_batch_normalization_s8.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ using namespace Xbyak;
3636

3737
using data_t = int8_t;
3838

39-
struct call_params_t {
39+
struct call_params_bnorm_t {
4040
// keep int sizes at 8 bytes -- jit code expects this
4141
size_t channel_offt_count, spat_offt_count;
4242
float eps;
@@ -97,7 +97,7 @@ struct jit_bnorm_base_t : public jit_generator {
9797
uni_vmovq(xone, reg_tmp);
9898
uni_vbroadcastss(vone, xone);
9999

100-
#define PARAM_OFF(x) offsetof(call_params_t, x)
100+
#define PARAM_OFF(x) offsetof(call_params_bnorm_t, x)
101101
uni_vbroadcastss(veps, vmmword[reg_param + PARAM_OFF(eps)]);
102102
uni_vpxor(vzero, vzero, vzero);
103103

@@ -586,7 +586,7 @@ struct driver_t : public c_compatible {
586586
dim_t W = pd_->W();
587587
dim_t SP = D * H * W;
588588

589-
call_params_t p;
589+
call_params_bnorm_t p;
590590

591591
p.eps = pd_->desc()->batch_norm_epsilon;
592592

0 commit comments

Comments
 (0)