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,
7373 switch (Mode) {
7474 case IR2VecKind::Symbolic:
7575 return std::make_unique<SymbolicEmbedder>(F, Vocabulary, Dimension);
76- default :
77- return make_error<StringError>(" Unknown IR2VecKind" ,
78- errc::invalid_argument);
7976 }
77+ return make_error<StringError>(" Unknown IR2VecKind" , errc::invalid_argument);
8078}
8179
8280void Embedder::addVectors (Embedding &Dst, const Embedding &Src) {
@@ -217,6 +215,7 @@ Error IR2VecVocabAnalysis::readVocabulary() {
217215
218216 unsigned Dim = Vocabulary.begin ()->second .size ();
219217 assert (Dim > 0 && " Dimension of vocabulary is zero" );
218+ (void )Dim;
220219 assert (std::all_of (Vocabulary.begin (), Vocabulary.end (),
221220 [Dim](const std::pair<StringRef, Embedding> &Entry) {
222221 return Entry.second .size () == Dim;
You can’t perform that action at this time.
0 commit comments