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)
286
286
287
287
// Verify that all embeddings across all sections have the same
288
288
// 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
+ };
295
296
assert (std::all_of (Sections.begin (), Sections.end (), allSameDim) &&
296
297
" All embeddings must have the same dimension" );
297
298
You can’t perform that action at this time.
0 commit comments