Skip to content

Commit 759d2eb

Browse files
snadampalCraigacp
authored andcommitted
linux-arm64: add build artifact item for linux-arm64 platform
TensorFlow v2.16.1 wheel artifacts and the jar build support are added
1 parent 71654ca commit 759d2eb

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,18 @@
329329
</property>
330330
</activation>
331331
</profile>
332+
<profile>
333+
<id>linux-arm64</id>
334+
<activation>
335+
<os>
336+
<name>linux</name>
337+
<arch>aarch64</arch>
338+
</os>
339+
<property>
340+
<name>!javacpp.platform.extension</name>
341+
</property>
342+
</activation>
343+
</profile>
332344
<profile>
333345
<id>macosx</id>
334346
<activation>

tensorflow-core/tensorflow-core-native/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@
131131
<version>${project.version}</version>
132132
<classifier>${javacpp.platform.windows-x86_64}</classifier>
133133
</artifactItem>
134+
<artifactItem>
135+
<groupId>${project.groupId}</groupId>
136+
<artifactId>${project.artifactId}</artifactId>
137+
<version>${project.version}</version>
138+
<classifier>${javacpp.platform.linux-arm64}</classifier>
139+
</artifactItem>
134140
</artifactItems>
135141
</configuration>
136142
</execution>
@@ -169,6 +175,10 @@
169175
<file>${project.build.directory}/${project.artifactId}-${project.version}-${javacpp.platform.windows-x86_64}.jar</file>
170176
<classifier>${javacpp.platform.windows-x86_64}</classifier>
171177
</artifact>
178+
<artifact>
179+
<file>${project.build.directory}/${project.artifactId}-${project.version}-${javacpp.platform.linux-arm64}.jar</file>
180+
<classifier>${javacpp.platform.linux-arm64}</classifier>
181+
</artifact>
172182
</artifacts>
173183
</configuration>
174184
</execution>

tensorflow-core/tensorflow-core-native/scripts/dist_download.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ case ${PLATFORM:-} in
2020
WHEEL_URL='https://files.pythonhosted.org/packages/e0/36/6278e4e7e69a90c00e0f82944d8f2713dd85a69d1add455d9e50446837ab/tensorflow_intel-2.16.1-cp311-cp311-win_amd64.whl'
2121
CLIB_URL='https://storage.googleapis.com/tensorflow/versions/2.16.1/libtensorflow-cpu-windows-x86_64.zip'
2222
;;
23+
'linux-arm64')
24+
WHEEL_URL='https://files.pythonhosted.org/packages/41/ab/e5386c722548df2043c1eaadc431ea3ba0ee42a66b3af7f8013bbbacecd3/tensorflow-2.16.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl'
25+
;;
2326
*)
2427
echo "TensorFlow distribution for ${PLATFORM} is not supported for download"
2528
exit 1;

tensorflow-core/tensorflow-core-platform/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
<version>${project.version}</version>
4444
<classifier>linux-x86_64</classifier>
4545
</dependency>
46+
<dependency>
47+
<groupId>org.tensorflow</groupId>
48+
<artifactId>tensorflow-core-native</artifactId>
49+
<version>${project.version}</version>
50+
<classifier>linux-arm64</classifier>
51+
</dependency>
4652
<dependency>
4753
<groupId>org.tensorflow</groupId>
4854
<artifactId>tensorflow-core-native</artifactId>
@@ -73,7 +79,7 @@
7379
<configuration>
7480
<archive>
7581
<manifestEntries>
76-
<Class-Path>tensorflow-core-api.jar tensorflow-core-native.jar tensorflow-core-native-linux-x86_64.jar tensorflow-core-native-macosx-arm64.jar tensorflow-core-native-macosx-x86_64.jar tensorflow-core-native-windows-x86_64.jar</Class-Path>
82+
<Class-Path>tensorflow-core-api.jar tensorflow-core-native.jar tensorflow-core-native-linux-x86_64.jar tensorflow-core-native-macosx-arm64.jar tensorflow-core-native-macosx-x86_64.jar tensorflow-core-native-windows-x86_64.jar tensorflow-core-native-linux-arm64.jar</Class-Path>
7783
<Automatic-Module-Name>${java.module.name}</Automatic-Module-Name>
7884
</manifestEntries>
7985
</archive>

0 commit comments

Comments
 (0)