aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/stream_executor/BUILD
diff options
context:
space:
mode:
authorGravatar Justin Lebar <jlebar@google.com>2018-04-22 12:18:05 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-04-22 12:21:03 -0700
commitea0c8a7ed84eb5cdf8ca6a856f9bd05a95597739 (patch)
treedbfe401e21e4c0eaae70dc5333f823d02e88b67b /tensorflow/stream_executor/BUILD
parentd481f07549470b4a03b41f9bb588d7f7ddc85082 (diff)
[StreamExecutor] [XLA] Delete copy/pasted implementations of MakeUnique.
StreamExecutor and XLA had a copy/pasted implementation of MakeUnique, in namespaces stream_executor::port and xla. This change removes those implementations and instead pulls tensorflow::MakeUnique into namespace stream_executor and namespace xla. We pull it into stream_executor rather than stream_executor::port for consistency with TF and XLA, which both pull MakeUnique into their own namespace. This change also moves MakeUnique and WrapUnique out of namespace tensorflow::scam_ops::internal -- scam can simply use tensorflow::{Make,Wrap}Unique. I suspect the reason it was this way originally was that TF didn't have Make/WrapUnique. PiperOrigin-RevId: 193849330
Diffstat (limited to 'tensorflow/stream_executor/BUILD')
-rw-r--r--tensorflow/stream_executor/BUILD2
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/stream_executor/BUILD b/tensorflow/stream_executor/BUILD
index 80fc9ff292..c68cda0100 100644
--- a/tensorflow/stream_executor/BUILD
+++ b/tensorflow/stream_executor/BUILD
@@ -35,6 +35,7 @@ cc_library(
deps = [
"//tensorflow/compiler/xla:statusor",
"//tensorflow/core:lib",
+ "//tensorflow/core:ptr_util",
"@local_config_cuda//cuda:cuda_headers",
],
alwayslink = 1,
@@ -46,6 +47,7 @@ cc_library(
visibility = ["//visibility:public"],
deps = [
"//tensorflow/core:lib",
+ "//tensorflow/core:ptr_util",
"//tensorflow/compiler/xla:statusor",
"@local_config_cuda//cuda:cuda_headers",
] + if_static([":stream_executor_impl"]),