Skip to content

Commit 2cfa457

Browse files
committed
Fix build warning
1 parent a9a3d6e commit 2cfa457

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxruntime/test/providers/checkers.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ struct TensorCheck<Int4x2> {
190190
const auto size = actual.Shape().Size();
191191
cur_expected = expected.Data<Int4x2>();
192192
cur_actual = actual.Data<Int4x2>();
193-
double threshold;
193+
double threshold = 0.0f;
194194
if (has_abs_err) {
195195
threshold = *(params.absolute_error);
196196
}
@@ -221,7 +221,7 @@ struct TensorCheck<UInt4x2> {
221221
cur_expected = expected.Data<UInt4x2>();
222222
cur_actual = actual.Data<UInt4x2>();
223223

224-
double threshold;
224+
double threshold = 0.0f;
225225
if (has_abs_err) {
226226
threshold = *(params.absolute_error);
227227
}

0 commit comments

Comments
 (0)