File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 =
You can’t perform that action at this time.
0 commit comments