We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b7c4ba commit 66afb96Copy full SHA for 66afb96
backends/vulkan/runtime/graph/ops/OperatorRegistry.cpp
@@ -16,7 +16,9 @@ bool OperatorRegistry::has_op(const std::string& name) {
16
17
OperatorRegistry::OpFunction& OperatorRegistry::get_op_fn(
18
const std::string& name) {
19
- return table_.find(name)->second;
+ const auto it = table_.find(name);
20
+ VK_CHECK_COND(it != table_.end(), "Could not find operator with name ", name);
21
+ return it->second;
22
}
23
24
void OperatorRegistry::register_op(const std::string& name, OpFunction& fn) {
0 commit comments