Skip to content

Commit 32b87e0

Browse files
authored
Re-introduce some logging after backout
Differential Revision: D82581441 Pull Request resolved: #14526
1 parent 08c8ed6 commit 32b87e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,13 @@ - (nullable NSURL *)compiledModelURLWithIdentifier:(NSString *)identifier
436436
switch (modelAssetType.value()) {
437437
case ModelAssetType::CompiledModel: {
438438
// Model is already compiled.
439+
ETCoreMLLogInfo("The model in the pte file is pre-compiled. Skipping compilation.");
439440
return modelURL;
440441
}
441442

442443
case ModelAssetType::Model: {
443444
// Compile the model.
445+
ETCoreMLLogInfo("The model in the pte file is not pre-compiled. Compiling with a 5 min timeout.");
444446
NSURL *compiledModelURL = [ETCoreMLModelCompiler compileModelAtURL:modelURL
445447
maxWaitTimeInSeconds:(5 * 60)
446448
error:error];

0 commit comments

Comments
 (0)