Skip to content

Commit

Permalink
add warning
Browse files Browse the repository at this point in the history
Signed-off-by: saienduri <saimanas.enduri@amd.com>
  • Loading branch information
saienduri committed Aug 6, 2024
1 parent 3c8e89e commit 083e6cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shark_turbine/aot/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,12 @@ def export(
)
)

if not strict_export:
warnings.warn(
"When strict_export == False, Python interpreter is used and code will execute exactly as it would in eager mode. "
"Therefore, graph optimizations and safety are not garaunteed to be at the same level as TorchDynamo."
)

TransformedModule: Any
current_decomps = decompositions.current_aot_decompositions()
if isinstance(mdl, torch.export.ExportedProgram):
Expand Down

0 comments on commit 083e6cd

Please sign in to comment.