Skip to content

Commit 7f55204

Browse files
James Reedfacebook-github-bot
James Reed
authored andcommitted
Fix identifier shadowing in tracer (pytorch#16480)
Summary: This was causing build failures under `-Werror` targets under optimized build modes Pull Request resolved: pytorch#16480 Differential Revision: D13857621 Pulled By: jamesr66a fbshipit-source-id: 2990b987dbca943298ad478c9ee2792236f5fa5b
1 parent f204e3e commit 7f55204

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch/csrc/jit/tracer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ Value* getNestedOutputTrace(
180180
} else if (iv.isTuple()) {
181181
const auto& elems = iv.toTuple()->elements();
182182
auto tuple_node = state->graph->createTuple(
183-
fmap(elems, [&state](const IValue& iv) {
184-
return getNestedOutputTrace(state, iv);
183+
fmap(elems, [&state](const IValue& ival) {
184+
return getNestedOutputTrace(state, ival);
185185
}));
186186
state->graph->insertNode(tuple_node);
187187
return tuple_node->output();

0 commit comments

Comments
 (0)