From ff436e9eee9aa4d149687fc80bacb5eff4ea6e19 Mon Sep 17 00:00:00 2001 From: Scott Roy <161522778+metascroy@users.noreply.github.com> Date: Thu, 25 Sep 2025 11:55:27 -0700 Subject: [PATCH] Re-introduce some logging after backout Differential Revision: D82581441 Pull Request resolved: https://github.com/pytorch/executorch/pull/14526 (cherry picked from commit 32b87e0cb95713880ce3cd1c96104e885a95acdc) --- backends/apple/coreml/runtime/delegate/ETCoreMLModelManager.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backends/apple/coreml/runtime/delegate/ETCoreMLModelManager.mm b/backends/apple/coreml/runtime/delegate/ETCoreMLModelManager.mm index f697d8c63ab..b49d9abd6b3 100644 --- a/backends/apple/coreml/runtime/delegate/ETCoreMLModelManager.mm +++ b/backends/apple/coreml/runtime/delegate/ETCoreMLModelManager.mm @@ -436,11 +436,13 @@ - (nullable NSURL *)compiledModelURLWithIdentifier:(NSString *)identifier switch (modelAssetType.value()) { case ModelAssetType::CompiledModel: { // Model is already compiled. + ETCoreMLLogInfo("The model in the pte file is pre-compiled. Skipping compilation."); return modelURL; } case ModelAssetType::Model: { // Compile the model. + ETCoreMLLogInfo("The model in the pte file is not pre-compiled. Compiling with a 5 min timeout."); NSURL *compiledModelURL = [ETCoreMLModelCompiler compileModelAtURL:modelURL maxWaitTimeInSeconds:(5 * 60) error:error];