aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/stream_executor
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-08-22 00:03:21 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-22 00:07:00 -0700
commit611459fd338e7109a1a2f7b21aa3ad5b1a5bd17b (patch)
treed2ae52b2c6014588a75f765e58e7a8912724f22f /tensorflow/stream_executor
parente846c2bc7dbbb5acca2d82a15b822b1445cd1e0c (diff)
[SE] Don't CHECK-fail when the stream is not-OK
This check-fail was wrong anyway; it meant to check the *substream's* status, but checked its own anyway. We could be in an error state and that's absolutely fine, we shouldn't kill the process for this. PiperOrigin-RevId: 209721359
Diffstat (limited to 'tensorflow/stream_executor')
-rw-r--r--tensorflow/stream_executor/stream.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/stream_executor/stream.cc b/tensorflow/stream_executor/stream.cc
index 9efd34de24..3695c839b5 100644
--- a/tensorflow/stream_executor/stream.cc
+++ b/tensorflow/stream_executor/stream.cc
@@ -1959,7 +1959,9 @@ Stream *Stream::GetOrCreateSubStream() {
false);
Stream *sub_stream = sub_streams_.back().first.get();
sub_stream->Init();
- CHECK(ok_) << "sub-stream failed to be initialized";
+ if (!sub_stream->ok_) {
+ LOG(ERROR) << "sub-stream failed to be initialized";
+ }
VLOG(1) << DebugStreamPointers() << " created new sub_stream "
<< sub_stream->DebugStreamPointers();