mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[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:
parent
1986b46d63
commit
b838bdd4d4
|
|
@ -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)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user