Skip to content

Commit f31df69

Browse files
Guang Yangfacebook-github-bot
authored andcommitted
Fix hardcoded mps model names (#6113)
Summary: Fix the `build-demo-ios` job Pull Request resolved: #6113 Reviewed By: shoumikhin Differential Revision: D64194761 Pulled By: guangy10 fbshipit-source-id: 9c05bd4454782bfaed23d926e43414b67edcfa87
1 parent 40cb26e commit f31df69

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
031B92F72ACF2A5400D4EBE0 /* mv3_mps.pte in Resources */ = {isa = PBXBuildFile; fileRef = 031B92F62ACF2A5400D4EBE0 /* mv3_mps.pte */; };
10+
031B92F72ACF2A5400D4EBE0 /* mv3_mps_float16.pte in Resources */ = {isa = PBXBuildFile; fileRef = 031B92F62ACF2A5400D4EBE0 /* mv3_mps_float16.pte */; };
1111
032C01A52AC22B16002955E1 /* App.swift in Sources */ = {isa = PBXBuildFile; fileRef = 032C018B2AC22B16002955E1 /* App.swift */; };
1212
032C01A72AC22B16002955E1 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 032C018D2AC22B16002955E1 /* ContentView.swift */; };
1313
032C01B72AC329B6002955E1 /* CustomViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = 032C01B62AC329B6002955E1 /* CustomViews.swift */; };
@@ -32,7 +32,7 @@
3232
03C818482AC7BF470084CC29 /* imagenet_classes.txt in Resources */ = {isa = PBXBuildFile; fileRef = 032C02012AC47CFB002955E1 /* imagenet_classes.txt */; };
3333
03C8184A2AC7BF470084CC29 /* mv3_xnnpack_fp32.pte in Resources */ = {isa = PBXBuildFile; fileRef = 032C01FC2AC47CFB002955E1 /* mv3_xnnpack_fp32.pte */; };
3434
03C8DC7C2AE2533C0064384A /* mv3_coreml_all.pte in Resources */ = {isa = PBXBuildFile; fileRef = 036834D72ACB893700BA100F /* mv3_coreml_all.pte */; };
35-
03D494E22B5B7AE900FCF524 /* mv3_mps.pte in Resources */ = {isa = PBXBuildFile; fileRef = 031B92F62ACF2A5400D4EBE0 /* mv3_mps.pte */; };
35+
03D494E22B5B7AE900FCF524 /* mv3_mps_float16.pte in Resources */ = {isa = PBXBuildFile; fileRef = 031B92F62ACF2A5400D4EBE0 /* mv3_mps_float16.pte */; };
3636
03D76BF12BAD297E0040FD82 /* backend_coreml in Frameworks */ = {isa = PBXBuildFile; productRef = 03D76BF02BAD297E0040FD82 /* backend_coreml */; };
3737
03D76BF32BAD297E0040FD82 /* executorch in Frameworks */ = {isa = PBXBuildFile; productRef = 03D76BF22BAD297E0040FD82 /* executorch */; };
3838
03D76BF52BAD297E0040FD82 /* backend_mps in Frameworks */ = {isa = PBXBuildFile; productRef = 03D76BF42BAD297E0040FD82 /* backend_mps */; };
@@ -90,7 +90,7 @@
9090
/* End PBXCopyFilesBuildPhase section */
9191

9292
/* Begin PBXFileReference section */
93-
031B92F62ACF2A5400D4EBE0 /* mv3_mps.pte */ = {isa = PBXFileReference; lastKnownFileType = file; path = mv3_mps.pte; sourceTree = "<group>"; };
93+
031B92F62ACF2A5400D4EBE0 /* mv3_mps_float16.pte */ = {isa = PBXFileReference; lastKnownFileType = file; path = mv3_mps_float16.pte; sourceTree = "<group>"; };
9494
032C016F2AC228E6002955E1 /* ExecuTorchDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ExecuTorchDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
9595
032C018A2AC22B16002955E1 /* MobileNetClassifier.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MobileNetClassifier.swift; sourceTree = "<group>"; };
9696
032C018B2AC22B16002955E1 /* App.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = App.swift; sourceTree = "<group>"; };
@@ -245,7 +245,7 @@
245245
children = (
246246
032C02012AC47CFB002955E1 /* imagenet_classes.txt */,
247247
036834D72ACB893700BA100F /* mv3_coreml_all.pte */,
248-
031B92F62ACF2A5400D4EBE0 /* mv3_mps.pte */,
248+
031B92F62ACF2A5400D4EBE0 /* mv3_mps_float16.pte */,
249249
032C01FC2AC47CFB002955E1 /* mv3_xnnpack_fp32.pte */,
250250
036834D42ACB710D00BA100F /* mv3.pte */,
251251
);
@@ -419,7 +419,7 @@
419419
isa = PBXResourcesBuildPhase;
420420
buildActionMask = 2147483647;
421421
files = (
422-
031B92F72ACF2A5400D4EBE0 /* mv3_mps.pte in Resources */,
422+
031B92F72ACF2A5400D4EBE0 /* mv3_mps_float16.pte in Resources */,
423423
036834D82ACB893700BA100F /* mv3_coreml_all.pte in Resources */,
424424
036834D52ACB710D00BA100F /* mv3.pte in Resources */,
425425
032C02082AC47CFB002955E1 /* imagenet_classes.txt in Resources */,
@@ -438,7 +438,7 @@
438438
03C818192AC671980084CC29 /* Samoyed.jpg in Resources */,
439439
03C8181F2AC69DFF0084CC29 /* hot pot.jpg in Resources */,
440440
03C8DC7C2AE2533C0064384A /* mv3_coreml_all.pte in Resources */,
441-
03D494E22B5B7AE900FCF524 /* mv3_mps.pte in Resources */,
441+
03D494E22B5B7AE900FCF524 /* mv3_mps_float16.pte in Resources */,
442442
);
443443
runOnlyForDeploymentPostprocessing = 0;
444444
};

examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo/Sources/App/ClassificationController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ClassificationController: ObservableObject {
6464
case .coreML:
6565
modelFileName = "mv3_coreml_all"
6666
case .mps:
67-
modelFileName = "mv3_mps"
67+
modelFileName = "mv3_mps_float16"
6868
case .xnnpack:
6969
modelFileName = "mv3_xnnpack_fp32"
7070
}

examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo/Sources/MobileNet/Test/MobileNetClassifierTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class MobileNetClassifierTest: XCTestCase {
2222
}
2323

2424
func testV3WithMPSBackend() throws {
25-
try run(model: "mv3_mps")
25+
try run(model: "mv3_mps_float16")
2626
}
2727

2828
func testV3WithXNNPACKBackend() throws {

0 commit comments

Comments
 (0)