Skip to content

Commit 81a2b60

Browse files
authored
Upgrade JavaCPP to 1.5.4-SNAPSHOT and TensorFlow to 2.3.0 (tensorflow#93)
1 parent 5d2407b commit 81a2b60

File tree

199 files changed

+12666
-926
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+12666
-926
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: |
3232
yum -y update
3333
yum -y install centos-release-scl-rh epel-release
34-
yum -y install java-1.8.0-openjdk-devel devtoolset-7 rh-git218 patch python36-devel python36-pip python36-six
34+
yum -y install java-1.8.0-openjdk-devel devtoolset-7 rh-git218 patch python36-devel python36-numpy python36-pip python36-six
3535
echo Downloading Maven
3636
curl -L https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -o $HOME/apache-maven-3.6.3-bin.tar.gz
3737
tar xzf $HOME/apache-maven-3.6.3-bin.tar.gz -C /opt/
@@ -66,7 +66,7 @@ jobs:
6666
steps:
6767
- name: Install environment
6868
run: |
69-
python3 -m pip install six
69+
python3 -m pip install numpy six
7070
echo Downloading Bazel
7171
curl -L https://github.com/bazelbuild/bazel/releases/download/2.0.0/bazel-2.0.0-installer-darwin-x86_64.sh -o bazel.sh --retry 10
7272
bash bazel.sh
@@ -98,7 +98,7 @@ jobs:
9898
- name: Install environment
9999
shell: cmd
100100
run: |
101-
python -m pip install six
101+
python -m pip install numpy six
102102
echo Removing broken version of Bash from WSL
103103
rm.exe "C:/WINDOWS/system32/bash.EXE"
104104
echo Removing some unused stuff to avoid running out of disk space

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ This table shows the mapping between different version of TensorFlow for Java an
160160
| TensorFlow Java Version | TensorFlow Version |
161161
| ------------- | ------------- |
162162
| 0.1.0-SNAPSHOT | 2.2.0 |
163-
| 0.2.0-SNAPSHOT | 2.2.0 |
163+
| 0.2.0-SNAPSHOT | 2.3.0 |
164164

165165
## How to Contribute?
166166

tensorflow-core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
<javacpp.platform.macosx-x86_64.extension>macosx-x86_64${javacpp.platform.extension}</javacpp.platform.macosx-x86_64.extension>
6060
<javacpp.platform.windows-x86.extension>windows-x86${javacpp.platform.extension}</javacpp.platform.windows-x86.extension>
6161
<javacpp.platform.windows-x86_64.extension>windows-x86_64${javacpp.platform.extension}</javacpp.platform.windows-x86_64.extension>
62-
<javacpp.version>1.5.3</javacpp.version>
63-
<mkl-dnn.version>0.21.4-${javacpp.version}</mkl-dnn.version>
62+
<javacpp.version>1.5.4-SNAPSHOT</javacpp.version>
63+
<mkl-dnn.version>0.21.5-${javacpp.version}</mkl-dnn.version>
6464
</properties>
6565

6666
<profiles>

tensorflow-core/tensorflow-core-api/WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ http_archive(
1616
patch_args = ["-p1"],
1717
patch_cmds = ["grep -rl 'java_package' tensorflow/core | xargs sed -i.bak 's/^\(.* java_package = \"org\.tensorflow\.\)\(.*\"\)/\\1proto.\\2'/"],
1818
urls = [
19-
"https://github.com/tensorflow/tensorflow/archive/v2.2.0.tar.gz",
19+
"https://github.com/tensorflow/tensorflow/archive/v2.3.0.tar.gz",
2020
],
21-
sha256 = "69cd836f87b8c53506c4f706f655d423270f5a563b76dc1cfa60fbc3184185a3",
22-
strip_prefix = "tensorflow-2.2.0"
21+
sha256 = "2595a5c401521f20a2734c4e5d54120996f8391f00bb62a57267d930bce95350",
22+
strip_prefix = "tensorflow-2.3.0"
2323
)
2424

2525
# START: Upstream TensorFlow dependencies

tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/ImageOps.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public <T extends TNumber> AdjustContrast<T> adjustContrast(Operand<T> images,
9898
* Adjust the hue of one or more images.
9999
* <p>
100100
* `images` is a tensor of at least 3 dimensions. The last dimension is
101-
* interpretted as channels, and must be three.
101+
* interpreted as channels, and must be three.
102102
* <p>
103103
* The input image is considered in the RGB colorspace. Conceptually, the RGB
104104
* colors are first mapped into HSV. A delta is then applied all the hue values,
@@ -117,7 +117,7 @@ public <T extends TNumber> AdjustHue<T> adjustHue(Operand<T> images, Operand<TFl
117117
* Adjust the saturation of one or more images.
118118
* <p>
119119
* `images` is a tensor of at least 3 dimensions. The last dimension is
120-
* interpretted as channels, and must be three.
120+
* interpreted as channels, and must be three.
121121
* <p>
122122
* The input image is considered in the RGB colorspace. Conceptually, the RGB
123123
* colors are first mapped into HSV. A scale is then applied all the saturation
@@ -347,7 +347,7 @@ public DecodeBmp decodeBmp(Operand<TString> contents, DecodeBmp.Options... optio
347347
* convert $src.gif -coalesce $dst.gif
348348
* <p>
349349
* This op also supports decoding JPEGs and PNGs, though it is cleaner to use
350-
* `tf.image.decode_image`.
350+
* `tf.io.decode_image`.
351351
*
352352
* @param contents 0-D. The GIF-encoded image.
353353
* @return a new instance of DecodeGif
@@ -382,7 +382,7 @@ public DecodeGif decodeGif(Operand<TString> contents) {
382382
* downscaling the image later.
383383
* <p>
384384
* This op also supports decoding PNGs and non-animated GIFs since the interface is
385-
* the same, though it is cleaner to use `tf.image.decode_image`.
385+
* the same, though it is cleaner to use `tf.io.decode_image`.
386386
*
387387
* @param contents 0-D. The JPEG-encoded image.
388388
* @param options carries optional attributes values
@@ -417,7 +417,7 @@ public DecodeJpeg decodeJpeg(Operand<TString> contents, DecodeJpeg.Options... op
417417
* of color channels.
418418
* <p>
419419
* This op also supports decoding JPEGs and non-animated GIFs since the interface
420-
* is the same, though it is cleaner to use `tf.image.decode_image`.
420+
* is the same, though it is cleaner to use `tf.io.decode_image`.
421421
*
422422
* @param <T> data type for {@code image()} output
423423
* @param contents 0-D. The PNG-encoded image.
@@ -453,7 +453,7 @@ public DecodePng<TUint8> decodePng(Operand<TString> contents, DecodePng.Options.
453453
* of color channels.
454454
* <p>
455455
* This op also supports decoding JPEGs and non-animated GIFs since the interface
456-
* is the same, though it is cleaner to use `tf.image.decode_image`.
456+
* is the same, though it is cleaner to use `tf.io.decode_image`.
457457
*
458458
* @param <T> data type for {@code image()} output
459459
* @param contents 0-D. The PNG-encoded image.

tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/IoOps.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ public ParseExample parseExample(Operand<TString> serialized, Operand<TString> n
419419
* @param featureListDenseKeys The keys expected in the SequenceExamples' feature_lists associated
420420
* with lists of dense values.
421421
* @param featureListRaggedKeys The keys expected in the FeatureLists associated with ragged values.
422-
* @param featureListDenseMissingAssumedEmpty A vector corresponding 1:1 with featue_list_dense_keys, indicating which
422+
* @param featureListDenseMissingAssumedEmpty A vector corresponding 1:1 with feature_list_dense_keys, indicating which
423423
* features may be missing from the SequenceExamples. If the associated
424424
* FeatureList is missing, it is treated as empty.
425425
* @param contextDenseDefaults A list of Ncontext_dense Tensors (some may be empty).

tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/LinalgOps.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ public final class LinalgOps {
8383
}
8484

8585
/**
86-
* Copy a tensor setting everything outside a central band in each innermost matrix
87-
* <p>
88-
* to zero.
86+
* Copy a tensor setting everything outside a central band in each innermost matrix to zero.
8987
* <p>
9088
* The `band` part is computed as follows:
9189
* Assume `input` has `k` dimensions `[I, J, K, ..., M, N]`, then the output is a

tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/MathOps.java

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
import org.tensorflow.op.math.Atan;
3636
import org.tensorflow.op.math.Atan2;
3737
import org.tensorflow.op.math.Atanh;
38-
import org.tensorflow.op.math.BesselI0e;
39-
import org.tensorflow.op.math.BesselI1e;
4038
import org.tensorflow.op.math.Betainc;
4139
import org.tensorflow.op.math.Bincount;
4240
import org.tensorflow.op.math.Ceil;
@@ -529,38 +527,6 @@ public <T extends TType> Atanh<T> atanh(Operand<T> x) {
529527
return Atanh.create(scope, x);
530528
}
531529

532-
/**
533-
* Computes the Bessel i0e function of `x` element-wise.
534-
* <p>
535-
* Exponentially scaled modified Bessel function of order 0 defined as
536-
* `bessel_i0e(x) = exp(-abs(x)) bessel_i0(x)`.
537-
* <p>
538-
* This function is faster and numerically stabler than `bessel_i0(x)`.
539-
*
540-
* @param <T> data type for {@code y()} output
541-
* @param x
542-
* @return a new instance of BesselI0e
543-
*/
544-
public <T extends TNumber> BesselI0e<T> besselI0e(Operand<T> x) {
545-
return BesselI0e.create(scope, x);
546-
}
547-
548-
/**
549-
* Computes the Bessel i1e function of `x` element-wise.
550-
* <p>
551-
* Exponentially scaled modified Bessel function of order 0 defined as
552-
* `bessel_i1e(x) = exp(-abs(x)) bessel_i1(x)`.
553-
* <p>
554-
* This function is faster and numerically stabler than `bessel_i1(x)`.
555-
*
556-
* @param <T> data type for {@code y()} output
557-
* @param x
558-
* @return a new instance of BesselI1e
559-
*/
560-
public <T extends TNumber> BesselI1e<T> besselI1e(Operand<T> x) {
561-
return BesselI1e.create(scope, x);
562-
}
563-
564530
/**
565531
* Compute the regularized incomplete beta integral \\(I_x(a, b)\\).
566532
* <p>

tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/NnOps.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ public <T extends TNumber> MaxPool3d<T> maxPool3d(Operand<T> input, List<Long> k
13281328
}
13291329

13301330
/**
1331-
* Computes gradients of max pooling function.
1331+
* Computes gradients of 3D max pooling function.
13321332
*
13331333
* @param <U> data type for {@code output()} output
13341334
* @param origInput The original input tensor.

0 commit comments

Comments
 (0)