Skip to content

Commit a689a3b

Browse files
authored
chore: make engine caching opt-in feature (#3152)
1 parent a6d37ee commit a689a3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/torch_tensorrt/dynamo/_defaults.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
tempfile.gettempdir(), "torch_tensorrt_engine_cache", "timing_cache.bin"
3636
)
3737
LAZY_ENGINE_INIT = False
38-
CACHE_BUILT_ENGINES = True
39-
REUSE_CACHED_ENGINES = True
38+
CACHE_BUILT_ENGINES = False
39+
REUSE_CACHED_ENGINES = False
4040
ENGINE_CACHE_DIR = os.path.join(tempfile.gettempdir(), "torch_tensorrt_engine_cache")
4141
ENGINE_CACHE_SIZE = 1073741824
4242
CUSTOM_ENGINE_CACHE = None

0 commit comments

Comments
 (0)