Remove incorrectly duplicated sizeof from micro_allocator
PiperOrigin-RevId: 289896711 Change-Id: Ieca61d4761e58215b06ce816d03b2c649b55815a
This commit is contained in:
parent
fd53378b27
commit
cd326c6548
|
@ -435,7 +435,7 @@ TfLiteStatus MicroAllocator::InitializeRuntimeTensor(
|
||||||
(src_quantization->zero_point()->size() > 0)) {
|
(src_quantization->zero_point()->size() > 0)) {
|
||||||
result->params.scale = src_quantization->scale()->Get(0);
|
result->params.scale = src_quantization->scale()->Get(0);
|
||||||
// This magic handles issues with little-endianness.
|
// This magic handles issues with little-endianness.
|
||||||
for (unsigned int b = 0; b < sizeof(sizeof(result->params.zero_point)); ++b)
|
for (unsigned int b = 0; b < sizeof(result->params.zero_point); ++b)
|
||||||
*(reinterpret_cast<char*>(&result->params.zero_point) + b) =
|
*(reinterpret_cast<char*>(&result->params.zero_point) + b) =
|
||||||
*(reinterpret_cast<const char*>(
|
*(reinterpret_cast<const char*>(
|
||||||
src_quantization->zero_point()->Data()) +
|
src_quantization->zero_point()->Data()) +
|
||||||
|
|
Loading…
Reference in New Issue