Print a TensorFlow URL instead of LLVM on crashes

PiperOrigin-RevId: 334255040
Change-Id: I2481458998fe6bf64fbfb09a744814e3441e5f00
This commit is contained in:
Mehdi Amini 2020-09-28 15:52:12 -07:00 committed by TensorFlower Gardener
parent 868305f995
commit 8d6c46237c

View File

@ -20,6 +20,11 @@ limitations under the License.
namespace tensorflow {
InitMlir::InitMlir(int *argc, char ***argv) : init_llvm_(*argc, *argv) {
llvm::setBugReportMsg(
"TensorFlow crashed, please file a bug on "
"https://github.com/tensorflow/tensorflow/issues with the trace "
"below.\n");
constexpr char kSeparator[] = "--";
// Find index of separator between two sets of flags.