Skip to content

Commit 810f803

Browse files
committed
Upgrade for TensorFlow 2.5.0
1 parent 35b73ce commit 810f803

File tree

5 files changed

+102
-83
lines changed

5 files changed

+102
-83
lines changed

tensorflow-core/tensorflow-core-api/.bazelrc

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ build --define open_source_build=true
151151
test --define open_source_build=true
152152

153153
# For workaround https://github.com/bazelbuild/bazel/issues/8772 with Bazel >= 0.29.1
154-
build --java_toolchain=@org_tensorflow//third_party/toolchains/java:tf_java_toolchain
155-
build --host_java_toolchain=@org_tensorflow//third_party/toolchains/java:tf_java_toolchain
154+
build --java_toolchain=@tf_toolchains//toolchains/java:tf_java_toolchain
155+
build --host_java_toolchain=@tf_toolchains//toolchains/java:tf_java_toolchain
156156

157157
# Please note that MKL on MacOS or windows is still not supported.
158158
# If you would like to use a local MKL instead of downloading, please set the
@@ -616,3 +616,33 @@ build:release_gpu_linux_cuda_10_1 --config=release_gpu_linux
616616
build:release_gpu_linux_cuda_10_1 --action_env CUDA_TOOLKIT_PATH="/usr/local/cuda-10.1"
617617
build:release_gpu_linux_cuda_10_1 --action_env=TF_CUDA_VERSION="10"
618618
build:release_gpu_linux_cuda_10_1 --action_env=TF_CUDNN_VERSION="7"
619+
620+
# Address sanitizer
621+
# CC=clang bazel build --config asan
622+
build:asan --strip=never
623+
build:asan --copt -fsanitize=address
624+
build:asan --copt -DADDRESS_SANITIZER
625+
build:asan --copt -g
626+
build:asan --copt -O3
627+
build:asan --copt -fno-omit-frame-pointer
628+
build:asan --linkopt -fsanitize=address
629+
630+
# Memory sanitizer
631+
# CC=clang bazel build --config msan
632+
build:msan --strip=never
633+
build:msan --copt -fsanitize=memory
634+
build:msan --copt -DADDRESS_SANITIZER
635+
build:msan --copt -g
636+
build:msan --copt -O3
637+
build:msan --copt -fno-omit-frame-pointer
638+
build:msan --linkopt -fsanitize=memory
639+
640+
# Undefined Behavior Sanitizer
641+
# CC=clang bazel build --config ubsan
642+
build:ubsan --strip=never
643+
build:ubsan --copt -fsanitize=undefined
644+
build:ubsan --copt -g
645+
build:ubsan --copt -O3
646+
build:ubsan --copt -fno-omit-frame-pointer
647+
build:ubsan --linkopt -fsanitize=undefined
648+
build:ubsan --linkopt -lubsan

tensorflow-core/tensorflow-core-api/WORKSPACE

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,31 @@ http_archive(
1717
patch_args = ["-p1"],
1818
patch_cmds = ["grep -rl 'java_package' tensorflow/core | xargs sed -i.bak 's/^\(.* java_package = \"org\.tensorflow\.\)\(.*\"\)/\\1proto.\\2'/"],
1919
urls = [
20-
"https://github.com/tensorflow/tensorflow/archive/v2.4.1.tar.gz",
20+
"https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.5.0-rc1.tar.gz",
2121
],
22-
sha256 = "f681331f8fc0800883761c7709d13cda11942d4ad5ff9f44ad855e9dc78387e0",
23-
strip_prefix = "tensorflow-2.4.1"
22+
sha256 = "354e58a2883210575ae7deacc9ab4a7ce00a3c60315151c2efbb734255e73713",
23+
strip_prefix = "tensorflow-2.5.0-rc1"
2424
)
2525

2626
# START: Upstream TensorFlow dependencies
2727
# TensorFlow build depends on these dependencies.
2828
# Needs to be in-sync with TensorFlow sources.
29-
http_archive(
30-
name = "io_bazel_rules_closure",
31-
sha256 = "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9",
32-
strip_prefix = "rules_closure-308b05b2419edb5c8ee0471b67a40403df940149",
33-
urls = [
34-
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz",
35-
"https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz", # 2019-06-13
36-
],
37-
)
38-
# END: Upstream TensorFlow dependencies
29+
load("@org_tensorflow//tensorflow:workspace3.bzl", "tf_workspace3")
30+
31+
tf_workspace3()
3932

40-
load("@org_tensorflow//tensorflow:workspace.bzl", "tf_workspace")
41-
tf_workspace()
33+
load("@org_tensorflow//tensorflow:workspace2.bzl", "tf_workspace2")
34+
35+
tf_workspace2()
36+
37+
load("@org_tensorflow//tensorflow:workspace1.bzl", "tf_workspace1")
38+
39+
tf_workspace1()
40+
41+
load("@org_tensorflow//tensorflow:workspace0.bzl", "tf_workspace0")
42+
43+
tf_workspace0()
44+
# END: Upstream TensorFlow dependencies
4245

4346
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
4447
grpc_deps()
Lines changed: 35 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
diff -ruN tensorflow-2.4.1/tensorflow/core/protobuf/bfc_memory_map.proto tensorflow-2.4.1-proto/tensorflow/core/protobuf/bfc_memory_map.proto
2-
--- tensorflow-2.4.1/tensorflow/core/protobuf/bfc_memory_map.proto 2021-01-21 09:25:54.000000000 +0900
3-
+++ tensorflow-2.4.1-proto/tensorflow/core/protobuf/bfc_memory_map.proto 2021-02-08 09:43:41.885495355 +0900
1+
diff -ruN tensorflow-2.5.0-rc1/tensorflow/core/protobuf/bfc_memory_map.proto tensorflow-2.5.0-rc1-proto/tensorflow/core/protobuf/bfc_memory_map.proto
2+
--- tensorflow-2.5.0-rc1/tensorflow/core/protobuf/bfc_memory_map.proto 2021-04-13 01:43:40.000000000 +0900
3+
+++ tensorflow-2.5.0-rc1-proto/tensorflow/core/protobuf/bfc_memory_map.proto 2021-04-27 10:18:43.910313526 +0900
44
@@ -3,6 +3,9 @@
55
package tensorflow;
66

@@ -11,9 +11,9 @@ diff -ruN tensorflow-2.4.1/tensorflow/core/protobuf/bfc_memory_map.proto tensorf
1111

1212
// Some of the data from AllocatorStats
1313
message MemAllocatorStats {
14-
diff -ruN tensorflow-2.4.1/tensorflow/core/protobuf/data/experimental/snapshot.proto tensorflow-2.4.1-proto/tensorflow/core/protobuf/data/experimental/snapshot.proto
15-
--- tensorflow-2.4.1/tensorflow/core/protobuf/data/experimental/snapshot.proto 2021-01-21 09:25:54.000000000 +0900
16-
+++ tensorflow-2.4.1-proto/tensorflow/core/protobuf/data/experimental/snapshot.proto 2021-02-08 09:40:24.584065472 +0900
14+
diff -ruN tensorflow-2.5.0-rc1/tensorflow/core/protobuf/snapshot.proto tensorflow-2.5.0-rc1-proto/tensorflow/core/protobuf/snapshot.proto
15+
--- tensorflow-2.5.0-rc1/tensorflow/core/protobuf/snapshot.proto 2021-04-13 01:43:40.000000000 +0900
16+
+++ tensorflow-2.5.0-rc1-proto/tensorflow/core/protobuf/snapshot.proto 2021-04-27 10:19:52.002448627 +0900
1717
@@ -6,6 +6,10 @@
1818
import "tensorflow/core/framework/tensor_shape.proto";
1919
import "tensorflow/core/framework/types.proto";
@@ -25,9 +25,9 @@ diff -ruN tensorflow-2.4.1/tensorflow/core/protobuf/data/experimental/snapshot.p
2525
// Each SnapshotRecord represents one batch of pre-processed input data. A batch
2626
// consists of a list of tensors that we encode as TensorProtos. This message
2727
// doesn't store the structure of the batch.
28-
diff -ruN tensorflow-2.4.1/tensorflow/core/protobuf/device_properties.proto tensorflow-2.4.1-proto/tensorflow/core/protobuf/device_properties.proto
29-
--- tensorflow-2.4.1/tensorflow/core/protobuf/device_properties.proto 2021-01-21 09:25:54.000000000 +0900
30-
+++ tensorflow-2.4.1-proto/tensorflow/core/protobuf/device_properties.proto 2021-02-08 09:41:23.317918806 +0900
28+
diff -ruN tensorflow-2.5.0-rc1/tensorflow/core/protobuf/device_properties.proto tensorflow-2.5.0-rc1-proto/tensorflow/core/protobuf/device_properties.proto
29+
--- tensorflow-2.5.0-rc1/tensorflow/core/protobuf/device_properties.proto 2021-04-13 01:43:40.000000000 +0900
30+
+++ tensorflow-2.5.0-rc1-proto/tensorflow/core/protobuf/device_properties.proto 2021-04-27 10:19:52.002448627 +0900
3131
@@ -19,6 +19,8 @@
3232

3333
option cc_enable_arenas = true;
@@ -37,9 +37,9 @@ diff -ruN tensorflow-2.4.1/tensorflow/core/protobuf/device_properties.proto tens
3737
option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/protobuf/for_core_protos_go_proto";
3838

3939
message DeviceProperties {
40-
diff -ruN tensorflow-2.4.1/tensorflow/core/protobuf/saved_object_graph.proto tensorflow-2.4.1-proto/tensorflow/core/protobuf/saved_object_graph.proto
41-
--- tensorflow-2.4.1/tensorflow/core/protobuf/saved_object_graph.proto 2021-01-21 09:25:54.000000000 +0900
42-
+++ tensorflow-2.4.1-proto/tensorflow/core/protobuf/saved_object_graph.proto 2021-02-08 09:41:50.066852012 +0900
40+
diff -ruN tensorflow-2.5.0-rc1/tensorflow/core/protobuf/saved_object_graph.proto tensorflow-2.5.0-rc1-proto/tensorflow/core/protobuf/saved_object_graph.proto
41+
--- tensorflow-2.5.0-rc1/tensorflow/core/protobuf/saved_object_graph.proto 2021-04-13 01:43:40.000000000 +0900
42+
+++ tensorflow-2.5.0-rc1-proto/tensorflow/core/protobuf/saved_object_graph.proto 2021-04-27 10:19:52.003448629 +0900
4343
@@ -11,6 +11,9 @@
4444

4545
option cc_enable_arenas = true;
@@ -50,9 +50,9 @@ diff -ruN tensorflow-2.4.1/tensorflow/core/protobuf/saved_object_graph.proto ten
5050

5151
// A SavedObjectGraph is part of object-based SavedModels in TF 2.0. It
5252
// describes the directed graph of Python objects (or equivalent in other
53-
diff -ruN tensorflow-2.4.1/tensorflow/core/protobuf/struct.proto tensorflow-2.4.1-proto/tensorflow/core/protobuf/struct.proto
54-
--- tensorflow-2.4.1/tensorflow/core/protobuf/struct.proto 2021-01-21 09:25:54.000000000 +0900
55-
+++ tensorflow-2.4.1-proto/tensorflow/core/protobuf/struct.proto 2021-02-08 09:42:06.645810614 +0900
53+
diff -ruN tensorflow-2.5.0-rc1/tensorflow/core/protobuf/struct.proto tensorflow-2.5.0-rc1-proto/tensorflow/core/protobuf/struct.proto
54+
--- tensorflow-2.5.0-rc1/tensorflow/core/protobuf/struct.proto 2021-04-13 01:43:40.000000000 +0900
55+
+++ tensorflow-2.5.0-rc1-proto/tensorflow/core/protobuf/struct.proto 2021-04-27 10:19:52.003448629 +0900
5656
@@ -7,6 +7,9 @@
5757
import "tensorflow/core/framework/types.proto";
5858

@@ -63,9 +63,9 @@ diff -ruN tensorflow-2.4.1/tensorflow/core/protobuf/struct.proto tensorflow-2.4.
6363

6464
// `StructuredValue` represents a dynamically typed value representing various
6565
// data structures that are inspired by Python data structures typically used in
66-
diff -ruN tensorflow-2.4.1/tensorflow/core/protobuf/trackable_object_graph.proto tensorflow-2.4.1-proto/tensorflow/core/protobuf/trackable_object_graph.proto
67-
--- tensorflow-2.4.1/tensorflow/core/protobuf/trackable_object_graph.proto 2021-01-21 09:25:54.000000000 +0900
68-
+++ tensorflow-2.4.1-proto/tensorflow/core/protobuf/trackable_object_graph.proto 2021-02-08 09:42:24.581760720 +0900
66+
diff -ruN tensorflow-2.5.0-rc1/tensorflow/core/protobuf/trackable_object_graph.proto tensorflow-2.5.0-rc1-proto/tensorflow/core/protobuf/trackable_object_graph.proto
67+
--- tensorflow-2.5.0-rc1/tensorflow/core/protobuf/trackable_object_graph.proto 2021-04-13 01:43:40.000000000 +0900
68+
+++ tensorflow-2.5.0-rc1-proto/tensorflow/core/protobuf/trackable_object_graph.proto 2021-04-27 10:19:52.003448629 +0900
6969
@@ -4,6 +4,9 @@
7070

7171
option cc_enable_arenas = true;
@@ -76,29 +76,18 @@ diff -ruN tensorflow-2.4.1/tensorflow/core/protobuf/trackable_object_graph.proto
7676

7777
// A TensorBundle addition which saves extra information about the objects which
7878
// own variables, allowing for more robust checkpoint loading into modified
79-
diff -ruN tensorflow-2.4.1/tensorflow/core/protobuf/transport_options.proto tensorflow-2.4.1-proto/tensorflow/core/protobuf/transport_options.proto
80-
--- tensorflow-2.4.1/tensorflow/core/protobuf/transport_options.proto 2021-01-21 09:25:54.000000000 +0900
81-
+++ tensorflow-2.4.1-proto/tensorflow/core/protobuf/transport_options.proto 2021-02-08 09:42:56.660650580 +0900
82-
@@ -3,6 +3,7 @@
83-
package tensorflow;
84-
85-
option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/protobuf/for_core_protos_go_proto";
86-
+option java_package = "org.tensorflow.distruntime";
87-
88-
// Extra data needed on a non-RDMA RecvBufResponse.
89-
message RecvBufRespExtra {
90-
diff -ruN tensorflow-2.4.1/tensorflow/core/lib/core/error_codes.proto tensorflow-2.4.1-proto/tensorflow/core/lib/core/error_codes.proto
91-
--- tensorflow-2.4.1/tensorflow/core/lib/core/error_codes.proto 2021-01-21 09:25:54.000000000 +0900
92-
+++ tensorflow-2.4.1-proto/tensorflow/core/lib/core/error_codes.proto 2021-02-08 09:40:24.590065457 +0900
79+
diff -ruN tensorflow-2.5.0-rc1/tensorflow/core/lib/core/error_codes.proto tensorflow-2.5.0-rc1-proto/tensorflow/core/lib/core/error_codes.proto
80+
--- tensorflow-2.5.0-rc1/tensorflow/core/lib/core/error_codes.proto 2021-04-13 01:43:40.000000000 +0900
81+
+++ tensorflow-2.5.0-rc1-proto/tensorflow/core/lib/core/error_codes.proto 2021-04-27 10:19:52.003448629 +0900
9382
@@ -1,3 +1,5 @@
9483
syntax = "proto3";
9584

9685
+option java_package = "org.tensorflow.framework";
9786
+
9887
import public "tensorflow/core/protobuf/error_codes.proto";
99-
diff -ruN tensorflow-2.4.1/tensorflow/core/profiler/protobuf/xplane.proto tensorflow-2.4.1-proto/tensorflow/core/profiler/protobuf/xplane.proto
100-
--- tensorflow-2.4.1/tensorflow/core/profiler/protobuf/xplane.proto 2021-01-21 09:25:54.000000000 +0900
101-
+++ tensorflow-2.4.1-proto/tensorflow/core/profiler/protobuf/xplane.proto 2021-02-08 09:40:24.591065455 +0900
88+
diff -ruN tensorflow-2.5.0-rc1/tensorflow/core/profiler/protobuf/xplane.proto tensorflow-2.5.0-rc1-proto/tensorflow/core/profiler/protobuf/xplane.proto
89+
--- tensorflow-2.5.0-rc1/tensorflow/core/profiler/protobuf/xplane.proto 2021-04-13 01:43:40.000000000 +0900
90+
+++ tensorflow-2.5.0-rc1-proto/tensorflow/core/profiler/protobuf/xplane.proto 2021-04-27 10:19:52.004448631 +0900
10291
@@ -3,6 +3,9 @@
10392
package tensorflow.profiler;
10493

@@ -109,9 +98,9 @@ diff -ruN tensorflow-2.4.1/tensorflow/core/profiler/protobuf/xplane.proto tensor
10998

11099
// A container of parallel XPlanes, generated by one or more profiling sources.
111100
// Next ID: 5
112-
diff -ruN tensorflow-2.4.1/tensorflow/core/util/memmapped_file_system.proto tensorflow-2.4.1-proto/tensorflow/core/util/memmapped_file_system.proto
113-
--- tensorflow-2.4.1/tensorflow/core/util/memmapped_file_system.proto 2021-01-21 09:25:54.000000000 +0900
114-
+++ tensorflow-2.4.1-proto/tensorflow/core/util/memmapped_file_system.proto 2021-02-08 09:40:24.592065452 +0900
101+
diff -ruN tensorflow-2.5.0-rc1/tensorflow/core/util/memmapped_file_system.proto tensorflow-2.5.0-rc1-proto/tensorflow/core/util/memmapped_file_system.proto
102+
--- tensorflow-2.5.0-rc1/tensorflow/core/util/memmapped_file_system.proto 2021-04-13 01:43:40.000000000 +0900
103+
+++ tensorflow-2.5.0-rc1-proto/tensorflow/core/util/memmapped_file_system.proto 2021-04-27 10:19:52.004448631 +0900
115104
@@ -17,6 +17,9 @@
116105
package tensorflow;
117106

@@ -122,9 +111,9 @@ diff -ruN tensorflow-2.4.1/tensorflow/core/util/memmapped_file_system.proto tens
122111

123112
// A message that describes one region of memmapped file.
124113
message MemmappedFileSystemDirectoryElement {
125-
diff -ruN tensorflow-2.4.1/tensorflow/core/profiler/profiler_options.proto tensorflow-2.4.1-proto/tensorflow/core/profiler/profiler_options.proto
126-
--- tensorflow-2.4.1/tensorflow/core/profiler/profiler_options.proto 2021-01-21 09:25:54.000000000 +0900
127-
+++ tensorflow-2.4.1-proto/tensorflow/core/profiler/profiler_options.proto 2021-02-08 09:40:24.593065450 +0900
114+
diff -ruN tensorflow-2.5.0-rc1/tensorflow/core/profiler/profiler_options.proto tensorflow-2.5.0-rc1-proto/tensorflow/core/profiler/profiler_options.proto
115+
--- tensorflow-2.5.0-rc1/tensorflow/core/profiler/profiler_options.proto 2021-04-13 01:43:40.000000000 +0900
116+
+++ tensorflow-2.5.0-rc1-proto/tensorflow/core/profiler/profiler_options.proto 2021-04-27 10:19:52.004448631 +0900
128117
@@ -1,6 +1,9 @@
129118
syntax = "proto3";
130119

@@ -135,16 +124,14 @@ diff -ruN tensorflow-2.4.1/tensorflow/core/profiler/profiler_options.proto tenso
135124

136125
// Next ID: 11
137126
message ProfileOptions {
138-
139-
diff --git a/tensorflow/core/protobuf/data/experimental/service_config.proto b/tensorflow/core/protobuf/data/experimental/service_config.proto
140-
index 3dcd2cd48d..ae2cfdd94f 100644
141-
--- a/tensorflow/core/protobuf/data/experimental/service_config.proto
142-
+++ b/tensorflow/core/protobuf/data/experimental/service_config.proto
127+
diff -ruN tensorflow-2.5.0-rc1/tensorflow/core/protobuf/service_config.proto tensorflow-2.5.0-rc1-proto/tensorflow/core/protobuf/service_config.proto
128+
--- tensorflow-2.5.0-rc1/tensorflow/core/protobuf/service_config.proto 2021-04-13 01:43:40.000000000 +0900
129+
+++ tensorflow-2.5.0-rc1-proto/tensorflow/core/protobuf/service_config.proto 2021-04-27 10:20:13.501491398 +0900
143130
@@ -1,6 +1,7 @@
144131
syntax = "proto3";
145-
132+
146133
package tensorflow.data.experimental;
147134
+option java_package = "org.tensorflow.data.experimental";
148-
135+
149136
// Configuration for a tf.data service DispatchServer.
150137
message DispatcherConfig {
Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
diff --git a/tensorflow/BUILD b/tensorflow/BUILD
2-
index 55406a5686..35d1547dfb 100644
3-
--- a/tensorflow/BUILD
4-
+++ b/tensorflow/BUILD
5-
@@ -33,7 +33,7 @@ load(
1+
diff -ruN tensorflow-2.5.0-rc1/tensorflow/BUILD tensorflow-2.5.0-rc1-visibility/tensorflow/BUILD
2+
--- tensorflow-2.5.0-rc1/tensorflow/BUILD 2021-04-13 01:43:40.000000000 +0900
3+
+++ tensorflow-2.5.0-rc1-visibility/tensorflow/BUILD 2021-04-27 10:26:14.196211286 +0900
4+
@@ -38,7 +38,7 @@
65
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
76

87
package(
@@ -11,27 +10,26 @@ index 55406a5686..35d1547dfb 100644
1110
licenses = ["notice"], # Apache 2.0
1211
)
1312

14-
diff --ruN a/tensorflow/core/api_def/BUILD b/tensorflow/core/api_def/BUILD
15-
--- a/tensorflow/core/api_def/BUILD 2020-03-26 18:19:19.000000000 -0400
16-
+++ b/tensorflow/core/api_def/BUILD 2020-04-01 22:50:37.000000000 -0400
17-
@@ -28,7 +28,7 @@ package(
18-
filegroup(
13+
diff -ruN tensorflow-2.5.0-rc1/tensorflow/core/api_def/BUILD tensorflow-2.5.0-rc1-visibility/tensorflow/core/api_def/BUILD
14+
--- tensorflow-2.5.0-rc1/tensorflow/core/api_def/BUILD 2021-04-13 01:43:40.000000000 +0900
15+
+++ tensorflow-2.5.0-rc1-visibility/tensorflow/core/api_def/BUILD 2021-04-27 10:29:38.712785268 +0900
16+
@@ -29,7 +29,7 @@
17+
alias(
1918
name = "base_api_def",
20-
srcs = glob(["base_api/*"]),
19+
actual = "//tensorflow/core/api_def/base_api:base_api_def",
2120
- visibility = ["//tensorflow:internal"],
2221
+ visibility = ["//visibility:public"],
2322
)
2423

25-
filegroup(
26-
diff -ruN a/tensorflow/tools/api/lib/BUILD b/tensorflow/tools/api/lib/BUILD
27-
--- a/tensorflow/tools/api/lib/BUILD 2020-03-26 18:19:19.000000000 -0400
28-
+++ b/tensorflow/tools/api/lib/BUILD 2020-04-01 22:50:37.000000000 -0400
29-
@@ -13,6 +13,7 @@
24+
alias(
25+
diff -ruN tensorflow-2.5.0-rc1/tensorflow/tools/api/lib/BUILD tensorflow-2.5.0-rc1-visibility/tensorflow/tools/api/lib/BUILD
26+
--- tensorflow-2.5.0-rc1/tensorflow/tools/api/lib/BUILD 2021-04-13 01:43:40.000000000 +0900
27+
+++ tensorflow-2.5.0-rc1-visibility/tensorflow/tools/api/lib/BUILD 2021-04-27 10:26:14.196211286 +0900
28+
@@ -16,6 +16,7 @@
3029
tf_proto_library(
3130
name = "api_objects_proto",
3231
srcs = ["api_objects.proto"],
3332
+ visibility = ["//visibility:public"],
3433
)
35-
34+
3635
py_library(
37-

tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/internal/c_api/presets/tensorflow.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ public void map(InfoMap infoMap) {
226226
.put(new Info("TFE_Op").pointerTypes("TFE_Op").base("org.tensorflow.internal.c_api.AbstractTFE_Op"))
227227
.put(new Info("TFE_Op::operation").javaText("@MemberGetter public native @ByRef EagerOperation operation();"))
228228
.put(new Info("TFE_TensorHandle").pointerTypes("TFE_TensorHandle").base("org.tensorflow.internal.c_api.AbstractTFE_TensorHandle"))
229+
.put(new Info("SP_Stream").cast().pointerTypes("Pointer"))
229230
.put(new Info("TF_ShapeInferenceContextDimValueKnown", "TFE_NewTensorHandle(const tensorflow::Tensor&, TF_Status*)").skip());
230231
}
231232
}

0 commit comments

Comments
 (0)