[tflite] Fix OSS build: int32 --> int32_t
PiperOrigin-RevId: 283797658 Change-Id: I1ff08717dbc83f88cd3aed3b413c3a482bc904e5
This commit is contained in:
parent
5cb564092f
commit
8ba0ba1ea2
@ -256,11 +256,11 @@ bool TfLiteDriver::DataExpectation::QuantizedCheck(bool verbose,
|
||||
auto* quantization =
|
||||
reinterpret_cast<TfLiteAffineQuantization*>(tensor.quantization.params);
|
||||
const float scale = quantization->scale->data[0];
|
||||
const int32 zero_point = quantization->zero_point->data[0];
|
||||
const int32_t zero_point = quantization->zero_point->data[0];
|
||||
|
||||
bool good_result = true;
|
||||
for (int i = 0; i < tensor.bytes; i++) {
|
||||
const int32 computed = tensor.data.int8[i];
|
||||
const int32_t computed = tensor.data.int8[i];
|
||||
const float dequantized =
|
||||
static_cast<float>(scale * (computed - zero_point));
|
||||
const float reference = Value<float>(data_.get(), i);
|
||||
|
Loading…
x
Reference in New Issue
Block a user