From 0392a5daeea4766eb4799f00ca07ce0ef4342399 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Thu, 16 Apr 2020 04:19:33 -0700 Subject: [PATCH] lsc. no new code. PiperOrigin-RevId: 306819978 Change-Id: I032a9371ed14aa05ab2469db871b9cb27010f5b4 --- tensorflow/compiler/xla/service/dump.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow/compiler/xla/service/dump.cc b/tensorflow/compiler/xla/service/dump.cc index ca6fadc2e23..0afcc4cd961 100644 --- a/tensorflow/compiler/xla/service/dump.cc +++ b/tensorflow/compiler/xla/service/dump.cc @@ -85,7 +85,7 @@ struct CanonicalDebugOptions { // resort to this hack. string pattern = opts.xla_dump_hlo_module_re(); should_dump_module = [pattern](string_view module_name) { - return RE2::PartialMatch(string(module_name), pattern); + return RE2::PartialMatch(module_name, pattern); }; } else if (!opts.xla_dump_hlo_pass_re().empty() || !opts.xla_dump_to().empty() || output_format_specified) { @@ -99,7 +99,7 @@ struct CanonicalDebugOptions { if (!opts.xla_dump_hlo_pass_re().empty()) { string pattern = opts.xla_dump_hlo_pass_re(); should_dump_pass = [pattern](string_view pass_name) { - return RE2::PartialMatch(string(pass_name), pattern); + return RE2::PartialMatch(pass_name, pattern); }; } else { should_dump_pass = [](string_view) { return false; };