diff options
author | Justin Lebar <jlebar@google.com> | 2018-04-22 12:18:05 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-04-22 12:21:03 -0700 |
commit | ea0c8a7ed84eb5cdf8ca6a856f9bd05a95597739 (patch) | |
tree | dbfe401e21e4c0eaae70dc5333f823d02e88b67b /tensorflow/stream_executor/host/host_platform.cc | |
parent | d481f07549470b4a03b41f9bb588d7f7ddc85082 (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/host/host_platform.cc')
-rw-r--r-- | tensorflow/stream_executor/host/host_platform.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/stream_executor/host/host_platform.cc b/tensorflow/stream_executor/host/host_platform.cc index 00a17a05ed..a652b08b4f 100644 --- a/tensorflow/stream_executor/host/host_platform.cc +++ b/tensorflow/stream_executor/host/host_platform.cc @@ -66,8 +66,8 @@ port::StatusOr<StreamExecutor*> HostPlatform::GetExecutor( port::StatusOr<std::unique_ptr<StreamExecutor>> HostPlatform::GetUncachedExecutor(const StreamExecutorConfig& config) { - auto executor = port::MakeUnique<StreamExecutor>( - this, port::MakeUnique<HostExecutor>(config.plugin_config)); + auto executor = MakeUnique<StreamExecutor>( + this, MakeUnique<HostExecutor>(config.plugin_config)); auto init_status = executor->Init(config.ordinal, config.device_options); if (!init_status.ok()) { return port::Status{ |