File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,8 @@ Expected<std::unique_ptr<Embedder>> Embedder::create(IR2VecKind Mode,
73
73
switch (Mode) {
74
74
case IR2VecKind::Symbolic:
75
75
return std::make_unique<SymbolicEmbedder>(F, Vocabulary, Dimension);
76
- default :
77
- return make_error<StringError>(" Unknown IR2VecKind" ,
78
- errc::invalid_argument);
79
76
}
77
+ return make_error<StringError>(" Unknown IR2VecKind" , errc::invalid_argument);
80
78
}
81
79
82
80
void Embedder::addVectors (Embedding &Dst, const Embedding &Src) {
@@ -217,6 +215,7 @@ Error IR2VecVocabAnalysis::readVocabulary() {
217
215
218
216
unsigned Dim = Vocabulary.begin ()->second .size ();
219
217
assert (Dim > 0 && " Dimension of vocabulary is zero" );
218
+ (void )Dim;
220
219
assert (std::all_of (Vocabulary.begin (), Vocabulary.end (),
221
220
[Dim](const std::pair<StringRef, Embedding> &Entry) {
222
221
return Entry.second .size () == Dim;
You can’t perform that action at this time.
0 commit comments