Skip to content

Commit

Permalink
[pytorch] Fixes uploadS3 gradle task
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu committed Jun 18, 2024
1 parent bb7dfd1 commit 04d6561
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void setup() {
TestRequirements.notMacX86();

System.setProperty("ai.djl.pytorch.native_helper", ALibUtilsTest.class.getName());
System.setProperty("STDCXX_LIBRARY_PATH", "/usr/lib/non-exists");
System.setProperty("LIBSTDCXX_LIBRARY_PATH", "/usr/lib/non-exists");
}

@AfterClass
Expand Down
5 changes: 2 additions & 3 deletions engines/pytorch/pytorch-native/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -254,16 +254,15 @@ tasks {
)
for (item in uploadDirs)
fileTree(item).files.map { it.name }.forEach {
val out = item.relativeTo(File("${BINARY_ROOT}/")).absolutePath
appendLine(out + URLEncoder.encode(it, "UTF-8"))
val out = item.toRelativeString(File("${BINARY_ROOT}/"))
appendLine(out + "/" + URLEncoder.encode(it, "UTF-8"))
}
}
exec {
commandLine("aws", "s3", "sync", "$BINARY_ROOT", "s3://djl-ai/publish/pytorch/$VERSION/")
}
}
}

}

java {
Expand Down
4 changes: 2 additions & 2 deletions engines/tensorflow/tensorflow-native/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ tasks {
)
for (item in uploadDirs)
fileTree(item).files.map { it.name }.forEach {
val out = item.relativeTo(buildDirectory / "native/").absolutePath
appendLine(out + it)
val out = item.toRelativeString(buildDirectory / "native/")
appendLine("$out/$it")
}
}
delete(
Expand Down

0 comments on commit 04d6561

Please sign in to comment.