Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backends/apple/coreml/compiler/coreml_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import logging

import shutil
import tempfile
import uuid
from dataclasses import asdict, dataclass
from enum import Enum
Expand Down Expand Up @@ -415,7 +416,7 @@ def preprocess_model(
mlmodel: ct.models.MLModel, model_type: MODEL_TYPE
) -> PreprocessResult:
identifier = "executorch_" + str(uuid.uuid4())
dir_path: Path = Path("tmp") / identifier
dir_path: Path = Path(tempfile.gettempdir()) / identifier
model_dir_path: Path = dir_path / "lowered_module"
model_spec: ct.proto.Model_pb2 = mlmodel.get_spec()
logger.warning(
Expand Down
Loading