From 7ad8d0a04d8e9d6c47436973fc79b0d8229598de Mon Sep 17 00:00:00 2001 From: Qianqian Zhu Date: Wed, 19 May 2021 20:11:20 +0100 Subject: [PATCH] initialise MemoryBundle members (#167) --- src/translator/definitions.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/translator/definitions.h b/src/translator/definitions.h index bf1cb57..fe434e7 100644 --- a/src/translator/definitions.h +++ b/src/translator/definitions.h @@ -18,16 +18,16 @@ typedef AlignedVector AlignedMemory; /// Memory bundle for all byte-arrays. /// Can be a set/subset of model, shortlist, vocabs and ssplitPrefixFile bytes. struct MemoryBundle { - AlignedMemory model; ///< Byte-array of model (aligned to 256) - AlignedMemory shortlist; ///< Byte-array of shortlist (aligned to 64) + AlignedMemory model{}; ///< Byte-array of model (aligned to 256) + AlignedMemory shortlist{}; ///< Byte-array of shortlist (aligned to 64) /// Vector of vocabulary memories (aligned to 64). /// If two vocabularies are the same (based on the filenames), two entries (shared /// pointers) will be generated which share the same AlignedMemory object. - std::vector> vocabs; + std::vector> vocabs{}; /// @todo Not implemented yet - AlignedMemory ssplitPrefixFile; + AlignedMemory ssplitPrefixFile{}; }; } // namespace bergamot