Skip to content

Commit 21ff8ed

Browse files
authored
Moving to TF-Java 1.0.0 (#367)
* Moving to TF-Java 1.0.0-rc.1 * Update pom.xml Bumping to TF-Java 1.0.0-rc2 * Move to TF-Java 1.0.0 * Bumping to TF-Java 1.0.0.
1 parent c87fd5e commit 21ff8ed

14 files changed

+27
-28
lines changed

Interop/Tensorflow/src/main/java/org/tribuo/interop/tensorflow/TensorFlowCheckpointModel.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
2020
import com.google.protobuf.ByteString;
2121
import com.google.protobuf.InvalidProtocolBufferException;
2222
import org.tensorflow.exceptions.TensorFlowException;
23-
import org.tensorflow.proto.framework.GraphDef;
23+
import org.tensorflow.proto.GraphDef;
2424
import org.tribuo.ImmutableFeatureMap;
2525
import org.tribuo.ImmutableOutputInfo;
2626
import org.tribuo.Output;

Interop/Tensorflow/src/main/java/org/tribuo/interop/tensorflow/TensorFlowFrozenExternalModel.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
2020
import com.google.protobuf.ByteString;
2121
import com.google.protobuf.InvalidProtocolBufferException;
2222
import com.oracle.labs.mlrg.olcut.util.Pair;
23-
import org.tensorflow.proto.framework.GraphDef;
23+
import org.tensorflow.proto.GraphDef;
2424
import org.tribuo.Example;
2525
import org.tribuo.ImmutableFeatureMap;
2626
import org.tribuo.ImmutableOutputInfo;

Interop/Tensorflow/src/main/java/org/tribuo/interop/tensorflow/TensorFlowModel.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015-2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@
2424
import org.tensorflow.SessionFunction;
2525
import org.tensorflow.Signature;
2626
import org.tensorflow.Tensor;
27-
import org.tensorflow.proto.framework.GraphDef;
27+
import org.tensorflow.proto.GraphDef;
2828
import org.tribuo.Example;
2929
import org.tribuo.Excuse;
3030
import org.tribuo.ImmutableFeatureMap;

Interop/Tensorflow/src/main/java/org/tribuo/interop/tensorflow/TensorFlowNativeModel.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@
2222
import org.tensorflow.Graph;
2323
import org.tensorflow.Session;
2424
import org.tensorflow.Tensor;
25-
import org.tensorflow.proto.framework.GraphDef;
25+
import org.tensorflow.proto.GraphDef;
2626
import org.tribuo.ImmutableFeatureMap;
2727
import org.tribuo.ImmutableOutputInfo;
2828
import org.tribuo.Output;

Interop/Tensorflow/src/main/java/org/tribuo/interop/tensorflow/TensorFlowSavedModelExternalModel.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

Interop/Tensorflow/src/main/java/org/tribuo/interop/tensorflow/TensorFlowTrainer.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015-2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -35,8 +35,8 @@
3535
import org.tensorflow.op.Op;
3636
import org.tensorflow.op.Ops;
3737
import org.tensorflow.op.core.Placeholder;
38-
import org.tensorflow.proto.framework.ConfigProto;
39-
import org.tensorflow.proto.framework.GraphDef;
38+
import org.tensorflow.proto.ConfigProto;
39+
import org.tensorflow.proto.GraphDef;
4040
import org.tensorflow.types.TFloat32;
4141
import org.tensorflow.types.family.TNumber;
4242
import org.tribuo.Dataset;

Interop/Tensorflow/src/main/java/org/tribuo/interop/tensorflow/example/CNNExamples.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2024 Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,7 +31,7 @@
3131
import org.tensorflow.op.nn.Conv2d;
3232
import org.tensorflow.op.nn.MaxPool;
3333
import org.tensorflow.op.nn.Relu;
34-
import org.tensorflow.proto.framework.GraphDef;
34+
import org.tensorflow.proto.GraphDef;
3535
import org.tensorflow.types.TFloat32;
3636
import org.tensorflow.types.TInt64;
3737
import org.tribuo.Trainer;

Interop/Tensorflow/src/main/java/org/tribuo/interop/tensorflow/example/GraphDefTuple.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616

1717
package org.tribuo.interop.tensorflow.example;
1818

19-
import org.tensorflow.proto.framework.GraphDef;
19+
import org.tensorflow.proto.GraphDef;
2020

2121
/**
2222
* A tuple containing a graph def protobuf along with the relevant operation names.

Interop/Tensorflow/src/main/java/org/tribuo/interop/tensorflow/example/MLPExamples.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2024 Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@
2626
import org.tensorflow.op.core.Variable;
2727
import org.tensorflow.op.math.Add;
2828
import org.tensorflow.op.nn.Relu;
29-
import org.tensorflow.proto.framework.GraphDef;
29+
import org.tensorflow.proto.GraphDef;
3030
import org.tensorflow.types.TFloat32;
3131
import org.tribuo.Trainer;
3232

Interop/Tensorflow/src/main/java/org/tribuo/interop/tensorflow/sequence/TensorFlowSequenceModel.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
2020
import com.google.protobuf.ByteString;
2121
import com.google.protobuf.InvalidProtocolBufferException;
2222
import com.oracle.labs.mlrg.olcut.util.Pair;
23-
import org.tensorflow.proto.framework.GraphDef;
23+
import org.tensorflow.proto.GraphDef;
2424
import org.tribuo.ImmutableFeatureMap;
2525
import org.tribuo.ImmutableOutputInfo;
2626
import org.tribuo.Output;

Interop/Tensorflow/src/main/java/org/tribuo/interop/tensorflow/sequence/TensorFlowSequenceTrainer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015-2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@
2525
import com.oracle.labs.mlrg.olcut.provenance.primitives.HashProvenance;
2626
import com.oracle.labs.mlrg.olcut.provenance.primitives.StringProvenance;
2727
import org.tensorflow.exceptions.TensorFlowException;
28-
import org.tensorflow.proto.framework.GraphDef;
28+
import org.tensorflow.proto.GraphDef;
2929
import org.tensorflow.types.TFloat32;
3030
import org.tribuo.ImmutableFeatureMap;
3131
import org.tribuo.ImmutableOutputInfo;

Interop/Tensorflow/src/test/java/org/tribuo/interop/tensorflow/ClassificationTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2024 Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@
2222
import org.junit.jupiter.api.Test;
2323
import org.tensorflow.ndarray.FloatNdArray;
2424
import org.tensorflow.ndarray.IntNdArray;
25-
import org.tensorflow.proto.framework.GraphDef;
25+
import org.tensorflow.proto.GraphDef;
2626
import org.tribuo.Dataset;
2727
import org.tribuo.Example;
2828
import org.tribuo.Feature;

THIRD_PARTY_LICENSES.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
113113
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
114114
SOFTWARE.
115115

116-
TensorFlow-Java 0.5.0 - Apache 2.0
116+
TensorFlow-Java 1.0.0 - Apache 2.0
117117

118-
Copyright 2019, 2020, 2022 The TensorFlow Authors. All rights reserved.
118+
Copyright 2019, 2024 The TensorFlow Authors. All rights reserved.
119119

120120
Apache License
121121
Version 2.0, January 2004

pom.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<liblinear.version>2.44</liblinear.version>
5353
<libsvm.version>3.25</libsvm.version>
5454
<onnxruntime.version>1.16.0</onnxruntime.version>
55-
<tensorflow.version>0.5.0</tensorflow.version>
55+
<tensorflow.version>1.0.0</tensorflow.version>
5656
<xgboost.version>1.6.2</xgboost.version>
5757

5858
<!-- 3rd party other dependencies -->
@@ -407,7 +407,6 @@
407407
<id>arm</id>
408408
<properties>
409409
<skipXGBoostTests>true</skipXGBoostTests>
410-
<skipTFTests>true</skipTFTests>
411410
</properties>
412411
</profile>
413412
<profile>

0 commit comments

Comments
 (0)