Skip to content

Commit 639a834

Browse files
metascroypytorchbot
authored andcommitted
Re-introduce some logging after backout
Differential Revision: D82581441 Pull Request resolved: #14526 (cherry picked from commit 32b87e0)
1 parent 7e1d1a3 commit 639a834

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

backends/apple/coreml/runtime/delegate/ETCoreMLModelManager.mm

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,15 +447,13 @@ - (nullable NSURL *)compiledModelURLWithIdentifier:(NSString *)identifier
447447
// Handle based on the type of the model asset.
448448
switch (modelAssetType.value()) {
449449
case ModelAssetType::CompiledModel: {
450-
// The model is already compiled; no further action needed.
451-
// Return the existing model URL.
450+
// Model is already compiled.
452451
ETCoreMLLogInfo("The model in the pte file is pre-compiled. Skipping compilation.");
453452
return modelURL;
454453
}
455454

456455
case ModelAssetType::Model: {
457-
// The model is not compiled yet.
458-
// Compile the model at the specified URL with a maximum wait time of 5 minutes.
456+
// Compile the model.
459457
ETCoreMLLogInfo("The model in the pte file is not pre-compiled. Compiling with a 5 min timeout.");
460458
NSURL *compiledModelURL = [ETCoreMLModelCompiler compileModelAtURL:modelURL
461459
maxWaitTimeInSeconds:(5 * 60)

0 commit comments

Comments
 (0)