2
2
3
3
The TensorFlow Java API is distributed in the
4
4
[ org.tensorflow: tensorflow ] ( http://mvnrepository.com/artifact/org.tensorflow/tensorflow )
5
- maven package. As of TensorFlow 1.2.1 , this package did not include GPU support
5
+ maven package. As of TensorFlow 1.4.0 , this package did not include GPU support
6
6
by default. However, by making the GPU-enabled native libraries available
7
7
to the JVM, GPUs can be utilized. This example demonstrates that.
8
8
@@ -26,7 +26,7 @@ to the JVM, GPUs can be utilized. This example demonstrates that.
26
26
```
27
27
output: (MatMul): /job:localhost/replica:0/task:0/cpu:0
28
28
input: (Placeholder): /job:localhost/replica:0/task:0/cpu:0
29
- TensorFlow version: 1.2.1
29
+ TensorFlow version: 1.4.0
30
30
31
31
Input : [[1.0, 2.0], [3.0, 4.0]]
32
32
Output: [[7.0, 10.0], [15.0, 22.0]]
@@ -43,8 +43,8 @@ CUDA-enabled Java native libraries need to be made available to the JVM.
43
43
1. Download and extract the CUDA-enabled TensorFlow native library:
44
44
45
45
```
46
- curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow_jni-gpu-linux-x86_64-1.2.1 .tar.gz" |
47
- tar -xz ./libtensorflow_jni.so
46
+ curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow_jni-gpu-linux-x86_64-1.4.0 .tar.gz" |
47
+ tar -xz
48
48
```
49
49
50
50
(For more detailed instructions see:
@@ -65,7 +65,7 @@ JVM will result in something like this on the console:
65
65
```
66
66
output: (MatMul): /job: localhost /replica:0/task:0/gpu:0
67
67
input: (Placeholder): /job: localhost /replica:0/task:0/gpu:0
68
- TensorFlow version: 1.2.1
68
+ TensorFlow version: 1.4.0
69
69
70
70
Input : [[ 1.0, 2.0] , [ 3.0, 4.0]]
71
71
Output: [[ 7.0, 10.0] , [ 15.0, 22.0]]
0 commit comments