Skip to content

Commit

Permalink
Enable FX graph caching for all benchmarks
Browse files Browse the repository at this point in the history
Summary:

Test Plan:

ghstack-source-id: 1ff0b8540be01816b0e3cfb03b059a0412f8bb55
Pull Request resolved: #125980
  • Loading branch information
masnesral committed May 14, 2024
1 parent aac215a commit 2bde357
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions benchmarks/dynamo/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
# Suppress torch.profiler spam
os.environ["KINETO_LOG_LEVEL"] = "5"

# Enable FX graph caching
os.environ["TORCHINDUCTOR_FX_GRAPH_CACHE"] = "1"

current_name = ""
current_device = ""
current_onnx_compiler = ""
Expand Down

0 comments on commit 2bde357

Please sign in to comment.