Remove incorrectly duplicated sizeof from micro_allocator

PiperOrigin-RevId: 289896711
Change-Id: Ieca61d4761e58215b06ce816d03b2c649b55815a
This commit is contained in:
Nat Jeffries 2020-01-15 11:12:26 -08:00 committed by TensorFlower Gardener
parent fd53378b27
commit cd326c6548
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ TfLiteStatus MicroAllocator::InitializeRuntimeTensor(
(src_quantization->zero_point()->size() > 0)) {
result->params.scale = src_quantization->scale()->Get(0);
// 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<const char*>(
src_quantization->zero_point()->Data()) +