Skip to content

Commit 4b5f835

Browse files
fwcdsuleshahid
andauthored
Fix typo in hello world example (#2925)
Co-authored-by: suleshahid <[email protected]>
1 parent 279feed commit 4b5f835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow/lite/micro/examples/hello_world/hello_world_test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ TfLiteStatus LoadQuantModelAndPerformInference() {
136136
float golden_inputs_float[kNumTestValues] = {0.77, 1.57, 2.3, 3.14};
137137

138138
// The int8 values are calculated using the following formula
139-
// (golden_inputs_float[i] / input->params.scale + input->params.scale)
139+
// (golden_inputs_float[i] / input->params.scale + input->params.zero_point)
140140
int8_t golden_inputs_int8[kNumTestValues] = {-96, -63, -34, 0};
141141

142142
for (int i = 0; i < kNumTestValues; ++i) {

0 commit comments

Comments
 (0)