Skip to content

Commit

Permalink
[pytorch] Updates PyTorch to 2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xyang16 committed Nov 12, 2024
1 parent 5f0e5e5 commit 91d95c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions engines/pytorch/pytorch-jni/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import java.net.URL

plugins {
ai.djl.javaProject
ai.djl.publish
Expand Down Expand Up @@ -32,7 +30,7 @@ tasks {
"osx-aarch64/cpu/libdjl_torch.dylib",
"win-x86_64/cpu/djl_torch.dll"
) + when {
ptVersion.startsWith("2.4.") -> listOf(
ptVersion.matches(Regex("2.[4-5].\\d")) -> listOf(
"linux-x86_64/cu124/libdjl_torch.so",
"linux-x86_64/cu124-precxx11/libdjl_torch.so",
"win-x86_64/cu124/djl_torch.dll"
Expand Down Expand Up @@ -103,4 +101,4 @@ publishing {
}
}
}
}
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ format.version = "1.1"

[versions]
djl = "0.31.0"
pytorch = "2.4.0"
pytorch = "2.5.1"
tensorflow = "2.16.1"
tensorflowCore = "1.0.0-rc.1"
mxnet = "1.9.1"
Expand Down

0 comments on commit 91d95c4

Please sign in to comment.