Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
Loading