Skip to content

Commit 2b89ac8

Browse files
committed
Move weak pointers to native lib
1 parent 7b83341 commit 2b89ac8

6 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
echo "::set-output name=stagingRepositoryId::$STAGING_REPOSITORY_ID"
5353
linux-x86_64:
5454
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'CI build')
55-
runs-on: ubuntu-22.04
55+
runs-on: ubuntu-20.04
5656
needs: prepare
5757
strategy:
5858
matrix:

‎tensorflow-core/tensorflow-core-api/src/main/java/module-info.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
module tensorflow {
1818
requires transitive org.tensorflow.ndarray;
19-
requires tensorflow.runtime;
19+
requires tensorflow.nativelib;
2020
requires java.logging;
2121

2222
exports org.tensorflow;

‎tensorflow-core/tensorflow-core-generator/src/main/java/module-info.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
=======================================================================
1616
*/
1717
module tensorflow.generator {
18-
requires tensorflow.runtime;
18+
requires tensorflow.nativelib;
1919
requires java.compiler;
2020
requires com.github.javaparser.core;
2121
requires com.google.protobuf;

‎tensorflow-core/tensorflow-core-native/src/main/java/module-info.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
limitations under the License.
1515
=======================================================================
1616
*/
17-
module tensorflow.runtime {
17+
module tensorflow.nativelib {
1818
requires transitive org.bytedeco.javacpp;
1919
requires transitive com.google.protobuf;
2020
requires java.logging;
2121

2222
exports org.tensorflow.exceptions;
23+
exports org.tensorflow.internal;
2324
exports org.tensorflow.internal.c_api;
2425
exports org.tensorflow.internal.c_api.global;
2526
exports org.tensorflow.proto;

tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/internal/WeakPointerScope.java renamed to tensorflow-core/tensorflow-core-native/src/main/java/org/tensorflow/internal/WeakPointerScope.java

File renamed without changes.

tensorflow-core/tensorflow-core-api/src/test/java/org/tensorflow/internal/WeakPointerScopeTest.java renamed to tensorflow-core/tensorflow-core-native/src/test/java/org/tensorflow/internal/WeakPointerScopeTest.java

File renamed without changes.

0 commit comments

Comments
 (0)