File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
backends/apple/coreml/runtime/delegate Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -449,12 +449,14 @@ - (nullable NSURL *)compiledModelURLWithIdentifier:(NSString *)identifier
449
449
case ModelAssetType::CompiledModel: {
450
450
// The model is already compiled; no further action needed.
451
451
// Return the existing model URL.
452
+ ETCoreMLLogInfo (" The model in the pte file is pre-compiled. Skipping compilation." );
452
453
return modelURL;
453
454
}
454
455
455
456
case ModelAssetType::Model: {
456
457
// The model is not compiled yet.
457
458
// Compile the model at the specified URL with a maximum wait time of 5 minutes.
459
+ ETCoreMLLogInfo (" The model in the pte file is not pre-compiled. Compiling with a 5 min timeout." );
458
460
NSURL *compiledModelURL = [ETCoreMLModelCompiler compileModelAtURL: modelURL
459
461
maxWaitTimeInSeconds: (5 * 60 )
460
462
error: error];
@@ -490,6 +492,7 @@ - (nullable ETCoreMLAsset *)compiledModelAssetWithMetadata:(const ModelMetadata&
490
492
error: error];
491
493
if (compiledModelURL) {
492
494
// Move the compiled model to the asset manager to transfer ownership.
495
+ ETCoreMLLogInfo (" Storing compiled asset with identifier=%@ in the asset manager." , identifier);
493
496
compiledModelAsset = [self .assetManager storeAssetAtURL: compiledModelURL withIdentifier: identifier error: error];
494
497
}
495
498
}];
You can’t perform that action at this time.
0 commit comments