Skip to content

Commit fc6c1af

Browse files
committed
Fix build warning
1 parent 5b2aa1a commit fc6c1af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxruntime/test/unittest_util/checkers.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ struct TensorCheck<Int4x2> {
232232
const auto size = narrow<size_t>(actual.Shape().Size());
233233
cur_expected = expected.Data<Int4x2>();
234234
cur_actual = actual.Data<Int4x2>();
235-
double threshold;
235+
double threshold = 0.0f;
236236
if (has_abs_err) {
237237
threshold = *(params.absolute_error);
238238
}
@@ -263,7 +263,7 @@ struct TensorCheck<UInt4x2> {
263263
cur_expected = expected.Data<UInt4x2>();
264264
cur_actual = actual.Data<UInt4x2>();
265265

266-
double threshold;
266+
double threshold = 0.0f;
267267
if (has_abs_err) {
268268
threshold = *(params.absolute_error);
269269
}

0 commit comments

Comments
 (0)