diff options
author | 2018-04-23 19:35:12 -0700 | |
---|---|---|
committer | 2018-04-23 19:39:28 -0700 | |
commit | 7bee86727b87a8317d4f1407061edfa9ccb16ea5 (patch) | |
tree | 8b3bdd445ff4751032096940ab34b8ef4a894adf | |
parent | 80fc661853f9a0844faf95eb68438dc85a5879e3 (diff) |
Don't Ref() XlaDeviceContext unnecessarily.
PiperOrigin-RevId: 194024407
-rw-r--r-- | tensorflow/compiler/jit/xla_device.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tensorflow/compiler/jit/xla_device.cc b/tensorflow/compiler/jit/xla_device.cc index 7beb18c04d..3e27cd39c6 100644 --- a/tensorflow/compiler/jit/xla_device.cc +++ b/tensorflow/compiler/jit/xla_device.cc @@ -234,7 +234,6 @@ Status XlaDevice::CreateAndSetGpuDeviceInfo() { gpu_device_info_->stream = stream; gpu_device_info_->default_context = new XlaDeviceContext(stream, client(), transfer_as_literal_); - gpu_device_info_->default_context->Ref(); set_tensorflow_gpu_device_info(gpu_device_info_.get()); } |