From a0b0d0874d94816c47a8c1dbb624f664976be159 Mon Sep 17 00:00:00 2001 From: Scott Roy <161522778+metascroy@users.noreply.github.com> Date: Wed, 17 Sep 2025 11:40:29 -0700 Subject: [PATCH] Back out "Add extra logging in CoreML (#13890)" Differential Revision: D82581442 Pull Request resolved: https://github.com/pytorch/executorch/pull/14353 (cherry picked from commit 75cb986b228abf1da0843ab05fab10ed499051ce) --- backends/apple/coreml/runtime/delegate/ETCoreMLModelManager.mm | 3 --- 1 file changed, 3 deletions(-) diff --git a/backends/apple/coreml/runtime/delegate/ETCoreMLModelManager.mm b/backends/apple/coreml/runtime/delegate/ETCoreMLModelManager.mm index 524ceaf7e28..c27b42566dc 100644 --- a/backends/apple/coreml/runtime/delegate/ETCoreMLModelManager.mm +++ b/backends/apple/coreml/runtime/delegate/ETCoreMLModelManager.mm @@ -449,14 +449,12 @@ - (nullable NSURL *)compiledModelURLWithIdentifier:(NSString *)identifier case ModelAssetType::CompiledModel: { // The model is already compiled; no further action needed. // Return the existing model URL. - ETCoreMLLogInfo("The model in the pte file is pre-compiled. Skipping compilation."); return modelURL; } case ModelAssetType::Model: { // The model is not compiled yet. // Compile the model at the specified URL with a maximum wait time of 5 minutes. - 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]; @@ -492,7 +490,6 @@ - (nullable ETCoreMLAsset *)compiledModelAssetWithMetadata:(const ModelMetadata& error:error]; if (compiledModelURL) { // Move the compiled model to the asset manager to transfer ownership. - ETCoreMLLogInfo("Storing compiled asset with identifier=%@ in the asset manager.", identifier); compiledModelAsset = [self.assetManager storeAssetAtURL:compiledModelURL withIdentifier:identifier error:error]; } }];