diff --git a/beginner_source/onnx/export_control_flow_model_to_onnx_tutorial.py b/beginner_source/onnx/export_control_flow_model_to_onnx_tutorial.py index 617a1e94a36..c8057727132 100644 --- a/beginner_source/onnx/export_control_flow_model_to_onnx_tutorial.py +++ b/beginner_source/onnx/export_control_flow_model_to_onnx_tutorial.py @@ -96,19 +96,6 @@ def forward(self, x): except Exception as e: print(e) -############################################################################### -# Using :func:`torch.onnx.export` with JIT Tracing -# ---------------------------------------- -# -# When exporting the model using :func:`torch.onnx.export` with the dynamo=True -# argument, the exporter defaults to using JIT tracing. This fallback allows -# the model to export, but the resulting ONNX graph may not faithfully represent -# the original model logic due to the limitations of tracing. - - -onnx_program = torch.onnx.export(model, (x,), dynamo=True) -print(onnx_program.model) - ############################################################################### # Suggested Patch: Refactoring with :func:`torch.cond` @@ -182,4 +169,4 @@ def neg(x): # # .. toctree:: # :hidden: -# \ No newline at end of file +#