Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tfhello
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleg Dzhimiev
tfhello
Commits
3fd637ba
Commit
3fd637ba
authored
Mar 25, 2020
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme and builder
parent
f2ca38ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
README.md
README.md
+1
-0
tensorflow_maven_builder.sh
tensorflow_maven_builder.sh
+40
-0
No files found.
README.md
0 → 100644
View file @
3fd637ba
tensorflow_maven_builder.sh
0 → 100755
View file @
3fd637ba
# Step 1 (Java):
bazel build
-c
opt //tensorflow/java:tensorflow //tensorflow/java:libtensorflow_jni //tensorflow/java:pom
mvn
install
:install-file
-Dfile
=
bazel-bin/tensorflow/java/libtensorflow.jar
-DpomFile
=
bazel-bin/tensorflow/java/pom.xml
# Step 2 (JNI):
bazel build
-c
opt //tensorflow/tools/lib_package:libtensorflow_jni.tar.gz
rm
-rf
bazel-bin/tensorflow/tools/lib_package/maven
mkdir
-p
bazel-bin/tensorflow/tools/lib_package/maven/org/tensorflow/native/linux-x86_64
POM
=
"
<project>
<modelVersion>4.0.0</modelVersion>
<description>Platform-dependent native code for the TensorFlow Java library. CUDA support depends on the local build.</description>
<groupId>org.tensorflow</groupId>
<artifactId>libtensorflow_jni_gpu</artifactId>
<version>1.15.2</version>
<packaging>jar</packaging>
<build>
<resources>
<resource>
<directory>.</directory>
<excludes>
<exclude>target/**</exclude>
</excludes>
</resource>
</resources>
</build>
</project>
"
echo
$POM
>
bazel-bin/tensorflow/tools/lib_package/maven/pom.xml
tar
-zxvf
bazel-bin/tensorflow/tools/lib_package/libtensorflow_jni.tar.gz
-C
bazel-bin/tensorflow/tools/lib_package/maven/org/tensorflow/native/linux-x86_64
cd
bazel-bin/tensorflow/tools/lib_package/maven
mvn package
mvn
install
cd
../../../../..
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment