Skip to content

Commit 177269a

Browse files
committed
fixed VocabularyFactory.cpp
1 parent 72505a5 commit 177269a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/generate_vocabulary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def generate_vocabulary_factory(class_names):
139139

140140
factory_footer = """\
141141
default:
142-
throw std::invalid_argument("Invalid dimension for vocabulary creation.");
142+
return nullptr;
143143
}
144144
}
145145
} // namespace IR2Vec\n

0 commit comments

Comments
 (0)