aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/jit/xla_tensor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/jit/xla_tensor.cc')
-rw-r--r--tensorflow/compiler/jit/xla_tensor.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/tensorflow/compiler/jit/xla_tensor.cc b/tensorflow/compiler/jit/xla_tensor.cc
index 5dff187fff..d777dfa5a3 100644
--- a/tensorflow/compiler/jit/xla_tensor.cc
+++ b/tensorflow/compiler/jit/xla_tensor.cc
@@ -92,10 +92,8 @@ se::Event* XlaTensor::GetDefinitionEvent(se::Stream* stream) {
void XlaTensor::SetDefinedOn(se::Stream* stream, se::Event event) {
mutex_lock lock(mu_);
- CHECK(!definition_event_.has_value())
- << "SetDefinedOn must only be called once!";
definition_event_ = std::move(event);
- streams_defined_on_.push_back(stream);
+ streams_defined_on_ = {stream};
}
void XlaTensor::SetDefinedOn(se::Stream* stream) {