Skip to content

Commit 19dfc40

Browse files
committed
resolve copilot comments
Signed-off-by: Will Guo <willg@nvidia.com>
1 parent f4d2185 commit 19dfc40

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modelopt/onnx/quantization/autotune/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import argparse
1919
import sys
20+
import tempfile
2021
from pathlib import Path
2122

2223
from modelopt.onnx.logging_config import logger
@@ -29,7 +30,7 @@
2930
DEFAULT_NUM_SCHEMES = 30
3031
DEFAULT_QUANT_TYPE = "int8"
3132
DEFAULT_DQ_DTYPE = "float32"
32-
DEFAULT_TIMING_CACHE = "/tmp/trtexec_timing.cache" # nosec B108
33+
DEFAULT_TIMING_CACHE = str(Path(tempfile.gettempdir()) / "trtexec_timing.cache")
3334
DEFAULT_WARMUP_RUNS = 5
3435
DEFAULT_TIMING_RUNS = 20
3536

0 commit comments

Comments
 (0)