Skip to content

Commit c194fb6

Browse files
committed
cpu: x64: brgemm_types: tidy: change default initialization
1 parent 8f4a39a commit c194fb6

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/cpu/x64/brgemm/brgemm_types.hpp

+4-8
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,7 @@ struct brgemm_prf_t {
9797
};
9898

9999
struct brgemm_batch_element_t {
100-
brgemm_batch_element_t() {
101-
ptr.A = ptr.B = nullptr;
102-
vvpad.top = vvpad.bottom = 0;
103-
has_s8s8_comp_batch_pad = 0;
104-
}
100+
brgemm_batch_element_t() { ptr.A = ptr.B = nullptr; }
105101
union {
106102
struct {
107103
const void *A;
@@ -113,14 +109,14 @@ struct brgemm_batch_element_t {
113109
} offset;
114110
};
115111
struct {
116-
dim_t top;
117-
dim_t bottom;
112+
dim_t top = 0;
113+
dim_t bottom = 0;
118114
} vvpad; // w.r.t. M dimension
119115

120116
// Used to calculate compensation when batch padding is present.
121117
// Note: batch_pad represent the overlap between weights and the height
122118
// dimension w.r.t. convolution dimensions.
123-
dim_t has_s8s8_comp_batch_pad;
119+
dim_t has_s8s8_comp_batch_pad = 0;
124120
};
125121

126122
struct DNNL_API brgemm_attr_t {

0 commit comments

Comments
 (0)