Skip to content

Commit 6cf899c

Browse files
committed
wip
1 parent 7e5ad0e commit 6cf899c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

csrc/val_graph.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ void ValGraph::initializeVal(
284284

285285
for (const auto& inp: def->inputs()) {
286286
const ValGroup& inp_val_group = toGroup(inp);
287-
unique_uses_[inp_val_group].pushBack(expr_set);
287+
unique_uses_.at(inp_val_group).pushBack(expr_set);
288288
}
289289
}
290290
// TODO-NM: def_groups can be empty. Should it be still mapped?
@@ -293,6 +293,10 @@ void ValGraph::initializeVal(
293293
"Multiple defining groups for ",
294294
nvfuser::toString(val_disjoint_set));
295295

296+
NVF_ERROR(
297+
unique_uses_.emplace(val_disjoint_set, {}).second,
298+
"Multiple use groups for ",
299+
nvfuser::toString(val_disjoint_set));
296300
// ExprGroups use_groups;
297301
// for (auto use : uses) {
298302
// const ExprGroup& expr_set =

0 commit comments

Comments
 (0)