[dynamo] remove unnecessary set_example_value for SymBool input. (#141610)

These are automatically done in create_graph_input so we can remove them. Code refactoring only.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/141610
Approved by: https://github.com/zou3519
This commit is contained in:
Yidi Wu 2024-12-05 16:15:01 -08:00 committed by PyTorch MergeBot
parent 1986b46d63
commit b838bdd4d4

View File

@ -985,12 +985,10 @@ class VariableBuilder:
example_strong_ref=new_symint,
)
# We bind the new_symint to graph input.
set_example_value(sym_node_proxy.node, new_symint)
sym_expr = new_symint.node.expr
assert isinstance(
sym_expr, sympy.Symbol
), f"{sym_expr} is not a basic Symbol."
self.tx.output.root_tracer.bound_symbols[sym_expr] = sym_node_proxy
self.tx.output.tracked_fakes.append(
TrackedFake(new_symint, new_source, None)
)