From a689a3bc83094c09e3feee67c8a474aae04ec52b Mon Sep 17 00:00:00 2001 From: Dheeraj Peri Date: Wed, 11 Sep 2024 12:13:54 -0700 Subject: [PATCH] chore: make engine caching opt-in feature (#3152) --- py/torch_tensorrt/dynamo/_defaults.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/torch_tensorrt/dynamo/_defaults.py b/py/torch_tensorrt/dynamo/_defaults.py index 83e85cb3c7..edb7bff10b 100644 --- a/py/torch_tensorrt/dynamo/_defaults.py +++ b/py/torch_tensorrt/dynamo/_defaults.py @@ -35,8 +35,8 @@ tempfile.gettempdir(), "torch_tensorrt_engine_cache", "timing_cache.bin" ) LAZY_ENGINE_INIT = False -CACHE_BUILT_ENGINES = True -REUSE_CACHED_ENGINES = True +CACHE_BUILT_ENGINES = False +REUSE_CACHED_ENGINES = False ENGINE_CACHE_DIR = os.path.join(tempfile.gettempdir(), "torch_tensorrt_engine_cache") ENGINE_CACHE_SIZE = 1073741824 CUSTOM_ENGINE_CACHE = None