Skip to content

Commit 77362fd

Browse files
committed
Rename XNN type from rebase
Signed-off-by: Jonathan Clohessy <[email protected]>
1 parent 03bccaa commit 77362fd

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/configs/pack-lh-config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static void init_f16_qdint8_pack_lh_config(void) {
3636
(xnn_pack_lh_size_fn)xnn_pack_lh_fx_qd8_packed_size;
3737
f16_qdint8_pack_lh_config.offset_fn =
3838
(xnn_pack_lh_offset_fn)xnn_pack_lh_fx_qd8_packed_offset;
39-
f16_qdint8_pack_lh_config.log2_input_element_size = XNN_LOG2_SIZEOF_HALF;
39+
f16_qdint8_pack_lh_config.log2_input_element_size = XNN_LOG2_SIZEOF_FLOAT16;
4040
f16_qdint8_pack_lh_config.log2_packed_element_size = 0;
4141
}
4242

@@ -57,7 +57,7 @@ static void init_f16_qduint8_pack_lh_config(void) {
5757
(xnn_pack_lh_size_fn)xnn_pack_lh_fx_qd8_packed_size;
5858
f16_qduint8_pack_lh_config.offset_fn =
5959
(xnn_pack_lh_offset_fn)xnn_pack_lh_fx_qd8_packed_offset;
60-
f16_qduint8_pack_lh_config.log2_input_element_size = XNN_LOG2_SIZEOF_HALF;
60+
f16_qduint8_pack_lh_config.log2_input_element_size = XNN_LOG2_SIZEOF_FLOAT16;
6161
f16_qduint8_pack_lh_config.log2_packed_element_size = 0;
6262
}
6363

src/operators/convolution-nhwc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2814,11 +2814,11 @@ enum xnn_status xnn_reshape_convolution2d_nhwc_pf16(
28142814
return reshape_convolution2d_nhwc(
28152815
convolution_op, xnn_operator_type_convolution_nhwc_pf16, batch_size,
28162816
input_height, input_width,
2817-
/*log2_input_element_size=*/XNN_LOG2_SIZEOF_HALF,
2818-
/*log2_filter_element_size=*/XNN_LOG2_SIZEOF_HALF,
2819-
/*log2_accumulator_element_size=*/XNN_LOG2_SIZEOF_HALF,
2817+
/*log2_input_element_size=*/XNN_LOG2_SIZEOF_FLOAT16,
2818+
/*log2_filter_element_size=*/XNN_LOG2_SIZEOF_FLOAT16,
2819+
/*log2_accumulator_element_size=*/XNN_LOG2_SIZEOF_FLOAT16,
28202820
/*extra_weights_elements_size=*/sizeof(uint16_t),
2821-
/*log2_output_element_size=*/XNN_LOG2_SIZEOF_HALF,
2821+
/*log2_output_element_size=*/XNN_LOG2_SIZEOF_FLOAT16,
28222822
/*dynamic_quantization=*/false, workspace_size, output_height_out,
28232823
output_width_out, threadpool);
28242824
}
@@ -3050,7 +3050,7 @@ enum xnn_status xnn_setup_convolution2d_nhwc_pf16(xnn_operator_t convolution_op,
30503050
return setup_convolution2d_nhwc(
30513051
convolution_op, xnn_operator_type_convolution_nhwc_pf16, workspace, input,
30523052
output, /*quantization_params=*/NULL,
3053-
/*log2_input_element_size=*/XNN_LOG2_SIZEOF_HALF);
3053+
/*log2_input_element_size=*/XNN_LOG2_SIZEOF_FLOAT16);
30543054
}
30553055

30563056
enum xnn_status xnn_setup_convolution2d_nhwc_f16(xnn_operator_t convolution_op,

0 commit comments

Comments
 (0)