Skip to content

Commit

Permalink
Upgrade PyTorch to 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
iceychris committed Aug 10, 2023
1 parent 6f475e8 commit d033e76
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
3 changes: 2 additions & 1 deletion PLMLibTorchWrapper.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Pod::Spec.new do |spec|

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

spec.dependency 'LibTorch-Lite', '1.12.0'
spec.dependency 'LibTorch-Lite', '1.13.0.1'
spec.frameworks = 'Accelerate'

spec.xcconfig = {
'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/LibTorch-Lite/install/include/"',
Expand Down
5 changes: 3 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ kotlin {
val androidMain by getting {
dependencies {
rootProject
implementation("org.pytorch:pytorch_android_lite:1.12.1")
implementation("org.pytorch:pytorch_android_lite:1.13.1")
}
}
val androidTest by getting {
Expand Down Expand Up @@ -83,7 +83,8 @@ tasks.named("linkDebugTestIosX64").configure {
"-force_load", libTorchLibsDir.resolve("libtorch_cpu.a").absolutePath,
"-all_load",
"-L${podBuildDir.resolve("PLMLibTorchWrapper").absolutePath}",
"-lPLMLibTorchWrapper"
"-lPLMLibTorchWrapper",
"-framework", "Accelerate",
)
}
}
Expand Down
3 changes: 2 additions & 1 deletion ios/LibTorchWrapper/PLMLibTorchWrapper.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Pod::Spec.new do |spec|

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

spec.dependency 'LibTorch-Lite', '1.12.0'
spec.dependency 'LibTorch-Lite', '1.13.0.1'
spec.frameworks = 'Accelerate'

spec.xcconfig = {
'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/LibTorch-Lite/install/include/"',
Expand Down
2 changes: 1 addition & 1 deletion ios/LibTorchWrapper/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ target 'LibTorchWrapper' do
use_frameworks!

# Pods for LibTorchWrapper
pod 'LibTorch-Lite', '1.12.0'
pod 'LibTorch-Lite', '1.13.0.1'

end
14 changes: 7 additions & 7 deletions ios/LibTorchWrapper/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
PODS:
- LibTorch-Lite (1.12.0):
- LibTorch-Lite/Core (= 1.12.0)
- LibTorch-Lite/Core (1.12.0):
- LibTorch-Lite (1.13.0.1):
- LibTorch-Lite/Core (= 1.13.0.1)
- LibTorch-Lite/Core (1.13.0.1):
- LibTorch-Lite/Torch
- LibTorch-Lite/Torch (1.12.0)
- LibTorch-Lite/Torch (1.13.0.1)

DEPENDENCIES:
- LibTorch-Lite (= 1.12.0)
- LibTorch-Lite (= 1.13.0.1)

SPEC REPOS:
trunk:
- LibTorch-Lite

SPEC CHECKSUMS:
LibTorch-Lite: c2210be0ed41c3a7f972c82715663a44d35ad97c
LibTorch-Lite: dd01cdefa487b3b1d41f1c8a4495f5e41c79fd80

PODFILE CHECKSUM: bc7247ebc31742154602ce637c65c9becdce3435
PODFILE CHECKSUM: 56e1939633710f5b0fd08b1be9588e070b744861

COCOAPODS: 1.11.3

0 comments on commit d033e76

Please sign in to comment.