File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -286,12 +286,13 @@ VocabStorage::VocabStorage(std::vector<std::vector<Embedding>> &&SectionData)
286286
287287 // Verify that all embeddings across all sections have the same
288288 // dimension
289- auto allSameDim = [ExpectedDim](const std::vector<Embedding> &Section) {
290- return std::all_of (Section.begin (), Section.end (),
291- [ExpectedDim](const Embedding &Emb) {
292- return Emb.size () == ExpectedDim;
293- });
294- };
289+ [[maybe_unused]] auto allSameDim =
290+ [ExpectedDim](const std::vector<Embedding> &Section) {
291+ return std::all_of (Section.begin (), Section.end (),
292+ [ExpectedDim](const Embedding &Emb) {
293+ return Emb.size () == ExpectedDim;
294+ });
295+ };
295296 assert (std::all_of (Sections.begin (), Sections.end (), allSameDim) &&
296297 " All embeddings must have the same dimension" );
297298
You can’t perform that action at this time.
0 commit comments