-
Notifications
You must be signed in to change notification settings - Fork 176
/
tensorflow-1.6.0-rename-runtime.patch
66 lines (65 loc) · 2.63 KB
/
tensorflow-1.6.0-rename-runtime.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
diff --git a/tensorflow/compiler/aot/BUILD b/tensorflow/compiler/aot/BUILD
index 0540260..5bea30c 100644
--- a/tensorflow/compiler/aot/BUILD
+++ b/tensorflow/compiler/aot/BUILD
@@ -10,7 +10,7 @@ load("//tensorflow:tensorflow.bzl", "tf_cc_binary")
# Optional runtime utilities for use by code generated by tfcompile.
cc_library(
- name = "runtime",
+ name = "tf_aot_runtime",
srcs = ["runtime.cc"],
hdrs = ["runtime.h"],
visibility = ["//visibility:public"],
@@ -23,7 +23,7 @@ tf_cc_test(
name = "runtime_test",
srcs = ["runtime_test.cc"],
deps = [
- ":runtime",
+ ":tf_aot_runtime",
"//tensorflow/core:framework",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
@@ -53,7 +53,7 @@ cc_library(
],
deps = [
":embedded_protocol_buffers",
- ":runtime", # needed by codegen to print aligned_buffer_bytes
+ ":tf_aot_runtime", # needed by codegen to print aligned_buffer_bytes
"//tensorflow/compiler/tf2xla",
"//tensorflow/compiler/tf2xla:common",
"//tensorflow/compiler/tf2xla:tf2xla_proto",
diff --git a/tensorflow/compiler/aot/tfcompile.bzl b/tensorflow/compiler/aot/tfcompile.bzl
index 58572fe..4518115 100644
--- a/tensorflow/compiler/aot/tfcompile.bzl
+++ b/tensorflow/compiler/aot/tfcompile.bzl
@@ -275,7 +275,7 @@ def tf_library(name, graph, config,
srcs=[test_file],
deps=[
":" + name,
- "//tensorflow/compiler/aot:runtime",
+ "//tensorflow/compiler/aot:tf_aot_runtime",
"//tensorflow/compiler/aot:tf_library_test_main",
"//tensorflow/compiler/xla:executable_run_options",
"//third_party/eigen3",
@@ -323,7 +323,7 @@ def tf_library(name, graph, config,
deps=[
":" + name,
"//tensorflow/compiler/aot:benchmark",
- "//tensorflow/compiler/aot:runtime",
+ "//tensorflow/compiler/aot:tf_aot_runtime",
"//tensorflow/compiler/xla:executable_run_options",
"//third_party/eigen3",
] + if_android([
diff --git a/tensorflow/compiler/tf2xla/BUILD b/tensorflow/compiler/tf2xla/BUILD
index 3c7dfef..4c07a96 100644
--- a/tensorflow/compiler/tf2xla/BUILD
+++ b/tensorflow/compiler/tf2xla/BUILD
@@ -90,7 +90,7 @@ cc_library(
deps = [
# Keep dependencies to a minimum here; this library is used in every AOT
# binary produced by tfcompile.
- "//tensorflow/compiler/aot:runtime",
+ "//tensorflow/compiler/aot:tf_aot_runtime",
"//tensorflow/compiler/xla:executable_run_options",
"//tensorflow/core:framework_lite",
],