We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bfe337 commit 8e6e320Copy full SHA for 8e6e320
backends/apple/coreml/compiler/coreml_preprocess.py
@@ -6,6 +6,7 @@
6
import logging
7
8
import shutil
9
+import tempfile
10
import uuid
11
from dataclasses import asdict, dataclass
12
from enum import Enum
@@ -415,7 +416,7 @@ def preprocess_model(
415
416
mlmodel: ct.models.MLModel, model_type: MODEL_TYPE
417
) -> PreprocessResult:
418
identifier = "executorch_" + str(uuid.uuid4())
- dir_path: Path = Path("tmp") / identifier
419
+ dir_path: Path = Path(tempfile.gettempdir()) / identifier
420
model_dir_path: Path = dir_path / "lowered_module"
421
model_spec: ct.proto.Model_pb2 = mlmodel.get_spec()
422
logger.warning(
0 commit comments