diff options
Diffstat (limited to 'tensorflow/stream_executor/cuda/cuda_activation.cc')
-rw-r--r-- | tensorflow/stream_executor/cuda/cuda_activation.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tensorflow/stream_executor/cuda/cuda_activation.cc b/tensorflow/stream_executor/cuda/cuda_activation.cc index cf6b9e2c6e..02371c3c3a 100644 --- a/tensorflow/stream_executor/cuda/cuda_activation.cc +++ b/tensorflow/stream_executor/cuda/cuda_activation.cc @@ -38,5 +38,11 @@ ScopedActivateExecutorContext::~ScopedActivateExecutorContext() { delete static_cast<ScopedActivateContext *>(driver_scoped_activate_context_); } +ScopedActivateExecutorContext::ScopedActivateExecutorContext( + ScopedActivateExecutorContext &&other) + : driver_scoped_activate_context_(other.driver_scoped_activate_context_) { + other.driver_scoped_activate_context_ = nullptr; +} + } // namespace cuda } // namespace stream_executor |