Skip to content

Commit 8b23650

Browse files
gmagogsfmpytorchmergebot
authored andcommitted
Expose torch.compiler.config.force_disable_caches as a public API (pytorch#166699)
Exposing this flag as some upstream frameworks (like vLLM) could benefit from knowing whether torch.compile caches are enabled or not to adjust their own caching behavior. Pull Request resolved: pytorch#166699 Approved by: https://github.com/oulgen, https://github.com/mlazos
1 parent 7b423c2 commit 8b23650

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torch/compiler/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"enable_cpp_symbolic_shape_guards",
3636
"wrap_top_frame",
3737
"reorderable_logging_functions",
38+
"force_disable_caches",
3839
]
3940

4041

0 commit comments

Comments
 (0)