diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-01-20 11:32:36 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-01-20 11:45:29 -0800 |
commit | c31294351628addffc1cd89687fad0e81bac5a55 (patch) | |
tree | b46ae106452f55a0e65b132f1ee33399a6c6b0ed /tensorflow/stream_executor/host | |
parent | 45208ae00457d92ae4bb5889a35597a155074457 (diff) |
Better StreamExecutor constructor
Using std::unique for the implementation argument makes it clear that
StreamExecutor is taking ownership of that argument.
Change: 145107302
Diffstat (limited to 'tensorflow/stream_executor/host')
-rw-r--r-- | tensorflow/stream_executor/host/host_platform.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/stream_executor/host/host_platform.cc b/tensorflow/stream_executor/host/host_platform.cc index 59b4bfe5f0..e93ccff4d8 100644 --- a/tensorflow/stream_executor/host/host_platform.cc +++ b/tensorflow/stream_executor/host/host_platform.cc @@ -85,7 +85,7 @@ port::StatusOr<StreamExecutor*> HostPlatform::GetExecutor( port::StatusOr<std::unique_ptr<StreamExecutor>> HostPlatform::GetUncachedExecutor(const StreamExecutorConfig& config) { auto executor = port::MakeUnique<StreamExecutor>( - this, new HostExecutor(config.plugin_config)); + this, port::MakeUnique<HostExecutor>(config.plugin_config)); auto init_status = executor->Init(config.ordinal, config.device_options); if (!init_status.ok()) { return port::Status{ |