Fixed slight bug in FX docs (#51779)

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/51779

Reviewed By: ngimel

Differential Revision: D26279623

Pulled By: Chillee

fbshipit-source-id: 0cd2a487ce6b80ce0d3f81e2b2334ade20d816bb
This commit is contained in:
Horace He 2021-02-05 11:23:42 -08:00 committed by Facebook GitHub Bot
parent aa1fd6b45a
commit 9c2dd5775a

View file

@ -269,6 +269,7 @@ on them and append them to the :class:`Graph`.
"""
graph : fx.Graph = tracer_class().trace(model)
new_graph = fx.Graph()
env = {}
for node in graph.nodes:
if node.op == 'call_function' and node.target in decomposition_rules:
# By wrapping the arguments with proxies,