Skip to content

Commit 63cd894

Browse files
committed
Upgrade Torch to 1.13.X
Note: with this commit, the underlying Torch versions diverge depending on OS: - On Android, pytorch_android_lite 1.13.1 is used - On iOS, LibTorch 1.13.0 (cocoapods release 1.13.0.1) is used
1 parent 6f475e8 commit 63cd894

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

PLMLibTorchWrapper.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Pod::Spec.new do |spec|
1111

1212
spec.source_files = "ios/LibTorchWrapper/LibTorchWrapper/**/*.{h,m,mm}"
1313

14-
spec.dependency 'LibTorch-Lite', '1.12.0'
14+
spec.dependency 'LibTorch-Lite', '1.13.0.1'
15+
spec.frameworks = 'Accelerate'
1516

1617
spec.xcconfig = {
1718
'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/LibTorch-Lite/install/include/"',

build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ kotlin {
5454
val androidMain by getting {
5555
dependencies {
5656
rootProject
57-
implementation("org.pytorch:pytorch_android_lite:1.12.1")
57+
implementation("org.pytorch:pytorch_android_lite:1.13.1")
5858
}
5959
}
6060
val androidTest by getting {
@@ -83,7 +83,8 @@ tasks.named("linkDebugTestIosX64").configure {
8383
"-force_load", libTorchLibsDir.resolve("libtorch_cpu.a").absolutePath,
8484
"-all_load",
8585
"-L${podBuildDir.resolve("PLMLibTorchWrapper").absolutePath}",
86-
"-lPLMLibTorchWrapper"
86+
"-lPLMLibTorchWrapper",
87+
"-framework", "Accelerate",
8788
)
8889
}
8990
}

ios/LibTorchWrapper/PLMLibTorchWrapper.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ Pod::Spec.new do |spec|
1414

1515
spec.source_files = "LibTorchWrapper/**/*.{h,m,mm}"
1616

17-
spec.dependency 'LibTorch-Lite', '1.12.0'
17+
spec.dependency 'LibTorch-Lite', '1.13.0.1'
18+
spec.frameworks = 'Accelerate'
1819

1920
spec.xcconfig = {
2021
'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/LibTorch-Lite/install/include/"',

ios/LibTorchWrapper/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ target 'LibTorchWrapper' do
66
use_frameworks!
77

88
# Pods for LibTorchWrapper
9-
pod 'LibTorch-Lite', '1.12.0'
9+
pod 'LibTorch-Lite', '1.13.0.1'
1010

1111
end

ios/LibTorchWrapper/Podfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
PODS:
2-
- LibTorch-Lite (1.12.0):
3-
- LibTorch-Lite/Core (= 1.12.0)
4-
- LibTorch-Lite/Core (1.12.0):
2+
- LibTorch-Lite (1.13.0.1):
3+
- LibTorch-Lite/Core (= 1.13.0.1)
4+
- LibTorch-Lite/Core (1.13.0.1):
55
- LibTorch-Lite/Torch
6-
- LibTorch-Lite/Torch (1.12.0)
6+
- LibTorch-Lite/Torch (1.13.0.1)
77

88
DEPENDENCIES:
9-
- LibTorch-Lite (= 1.12.0)
9+
- LibTorch-Lite (= 1.13.0.1)
1010

1111
SPEC REPOS:
1212
trunk:
1313
- LibTorch-Lite
1414

1515
SPEC CHECKSUMS:
16-
LibTorch-Lite: c2210be0ed41c3a7f972c82715663a44d35ad97c
16+
LibTorch-Lite: dd01cdefa487b3b1d41f1c8a4495f5e41c79fd80
1717

18-
PODFILE CHECKSUM: bc7247ebc31742154602ce637c65c9becdce3435
18+
PODFILE CHECKSUM: 56e1939633710f5b0fd08b1be9588e070b744861
1919

2020
COCOAPODS: 1.11.3

0 commit comments

Comments
 (0)