Skip to content

Commit 1c2ed7b

Browse files
cymbalrushfacebook-github-bot
authored andcommitted
Fix coreml runner build (#2536)
Summary: The runner fails to build ``` /Users/runner/work/executorch/executorch/pytorch/executorch/backends/apple/coreml/runtime/delegate/ETCoreMLModelManager.mm:387:43: error: no member named 'ModelPackage' in '(anonymous namespace)::ModelAssetType' if (modelAssetType == ModelAssetType::ModelPackage) { ``` The PR fixes the issue. Tested all CoreML builds. Pull Request resolved: #2536 Reviewed By: kirklandsign Differential Revision: D55178665 Pulled By: shoumikhin fbshipit-source-id: 79d94e7bcd7e27c4a152bcdb1c9054e2bbbc1718
1 parent 43bae28 commit 1c2ed7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ - (nullable NSURL *)compiledModelURLWithIdentifier:(NSString *)identifier
384384
auto modelAssetType = get_model_asset_type(inMemoryFS);
385385
ETCoreMLAsset *modelAsset = nil;
386386
// Write the model files.
387-
if (modelAssetType == ModelAssetType::ModelPackage) {
387+
if (modelAssetType == ModelAssetType::Model) {
388388
NSURL *modelURL = ::write_model_files(dstURL, self.fileManager, identifier, modelAssetType.value(), inMemoryFS, error);
389389
if (modelURL) {
390390
modelAsset = make_asset(modelURL,

0 commit comments

Comments
 (0)