From 611459fd338e7109a1a2f7b21aa3ad5b1a5bd17b Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 22 Aug 2018 00:03:21 -0700 Subject: [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 --- tensorflow/stream_executor/stream.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tensorflow/stream_executor') 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(); -- cgit v1.2.3