diff --git a/src/io/executor.cpp b/src/io/executor.cpp index c7e6c783bb227c75dd394fcecf5c03e83c81b252..100a774054035285d0e8b14ca195ad9c627a7ff7 100644 --- a/src/io/executor.cpp +++ b/src/io/executor.cpp @@ -112,7 +112,9 @@ void Executor::LoadMemory( uint32_t version = *(reinterpret_cast(*data_buf)); *data_buf += sizeof(uint32_t); // lod information - uint64_t lod_level = *(reinterpret_cast(*data_buf)); + // uint64_t lod_level = *(reinterpret_cast(*data_buf)); + uint64_t lod_level = 0; + memcpy(&lod_level, *data_buf, sizeof(uint64_t)); *data_buf += sizeof(uint64_t); auto *lod = tensor->mutable_lod();