/external/tensorflow/tensorflow/core/debug/ |
debug_node_key.cc | 48 str_util::StringReplace( 49 str_util::StringReplace(device_name, ":", "_", true), "/", ",",
|
/external/tensorflow/tensorflow/java/src/gen/cc/ |
op_generator.cc | 52 base_package + '.' + str_util::StringReplace(lib_name, "_", "", true); 54 output_dir + '/' + str_util::StringReplace(package, ".", "/", true);
|
/external/tensorflow/tensorflow/core/lib/strings/ |
str_util_test.cc | 400 TEST(StringReplace, Basic) { 401 EXPECT_EQ("XYZ_XYZ_XYZ", str_util::StringReplace("ABC_ABC_ABC", "ABC", "XYZ", 405 TEST(StringReplace, OnlyFirst) { 406 EXPECT_EQ("XYZ_ABC_ABC", str_util::StringReplace("ABC_ABC_ABC", "ABC", "XYZ", 410 TEST(StringReplace, IncreaseLength) { 412 str_util::StringReplace("abc", "b", " b ", /*replace_all=*/true)); 415 TEST(StringReplace, IncreaseLengthMultipleMatches) { 417 str_util::StringReplace("abbc", "b", " b ", /*replace_all=*/true)); 420 TEST(StringReplace, NoChange) { 422 str_util::StringReplace("abc", "d", "X", /*replace_all=*/true)) [all...] |
str_util.h | 101 string StringReplace(StringPiece s, StringPiece oldsub, StringPiece newsub,
|
/external/protobuf/src/google/protobuf/compiler/csharp/ |
csharp_doc_comment.cc | 57 comments = StringReplace(comments, "&", "&", true); 58 comments = StringReplace(comments, "<", "<", true);
|
csharp_helpers.cc | 292 result += StringReplace(classname, ".", ".Types.", true); 371 string namespace_dir = StringReplace(namespace_suffix, ".", "/", true);
|
/external/tensorflow/tensorflow/core/profiler/internal/ |
tfprof_utils.h | 41 string StringReplace(const string& str, const string& oldsub,
|
tfprof_node.cc | 214 node_.set_host_device(StringReplace(dev, "device:sycl:\\d+", "cpu:0")); 216 node_.set_host_device(StringReplace(dev, "gpu:\\d+", "cpu:0"));
|
tfprof_show_test.cc | 213 StringReplace(CheckAndRemoveDoc(dump_str), " ", ""));
|
/external/tensorflow/tensorflow/core/grappler/costs/ |
utils.cc | 371 string name = str_util::StringReplace(device_name, "/job_", "/job:", true); 372 name = str_util::StringReplace(name, "/replica_", "/replica:", true); 373 name = str_util::StringReplace(name, "/task_", "/task:", true); 374 name = str_util::StringReplace(name, "/device_", "/device:", true); 375 name = str_util::StringReplace(name, "GPU_", "GPU:", true); 376 name = str_util::StringReplace(name, "CPU_", "CPU:", true); 377 name = str_util::StringReplace(name, "gpu_", "gpu:", true); 378 name = str_util::StringReplace(name, "cpu_", "cpu:", true);
|
/external/tensorflow/tensorflow/core/framework/ |
op_gen_lib.cc | 248 static void StringReplace(const string& from, const string& to, string* s) { 275 StringReplace(from_quoted, to_quoted, 281 StringReplace(from_quoted, to_quoted, 287 StringReplace(from_quoted, to_quoted, 292 StringReplace(from_quoted, to_quoted, api_def->mutable_summary()); 295 StringReplace(from_quoted, to_quoted, api_def->mutable_description());
|
/external/perfetto/tools/proto_to_cpp/ |
proto_to_cpp.cc | 83 return StringReplace(proto_file->name(), ".proto", ".pb.h", false); 151 return header_dir_ + "/" + StringReplace(basename, ".proto", ".h", false); 156 return cpp_dir_ + "/" + StringReplace(basename, ".proto", ".cc", false); 161 return include_path_ + "/" + StringReplace(basename, ".proto", ".h", false);
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
cpp_extension.cc | 146 string global_name = StringReplace(name, "::", "_", true);
|
cpp_helpers.cc | 60 return StringReplace(name, ".", "_", true); 64 return StringReplace(name, ".", "::", true); 467 return StringReplace(to_escape, "?", "\\?", true);
|
/external/protobuf/src/google/protobuf/testing/ |
googletest.cc | 118 result = StringReplace(result, "\\", "/", true);
|
/external/tensorflow/tensorflow/tools/graph_transforms/ |
sparsify_gather.cc | 34 using str_util::StringReplace; 241 auto parsed_input = StringReplace(input, "^", "", true); 348 auto parsed_input = StringReplace(input_node, "^", "", true); 498 auto parsed_input = StringReplace(input, "^", "", true);
|
/external/protobuf/src/google/protobuf/compiler/ |
importer.cc | 267 path = "\\\\" + StringReplace(path.substr(2), "\\", "/", true); 269 path = StringReplace(path, "\\", "/", true);
|
command_line_interface_unittest.cc | 344 args[i] = StringReplace(args[i], "$tmpdir", temp_directory_, true); 382 full_name, StringReplace(contents, "$tmpdir", temp_directory_, true), 400 EXPECT_EQ(StringReplace(expected_text, "$tmpdir", temp_directory_, true), 494 EXPECT_EQ(StringReplace(content, "$tmpdir", temp_directory_, true), [all...] |
/external/protobuf/src/google/protobuf/compiler/java/ |
java_name_resolver.cc | 244 result += StringReplace(name_without_package, ".", "$", true);
|
java_helpers.cc | 152 return "static_" + StringReplace(descriptor->full_name(), ".", "_", true); 186 StringReplace(package_name, ".", "/", true);
|
/external/protobuf/src/google/protobuf/compiler/javamicro/ |
javamicro_generator.cc | 171 StringReplace(file_generator.java_package(), ".", "/", true);
|
javamicro_message.cc | 88 return "static_" + StringReplace(descriptor->full_name(), ".", "_", true);
|
/external/protobuf/src/google/protobuf/compiler/javanano/ |
javanano_generator.cc | 201 StringReplace(file_generator.java_package(), ".", "/", true);
|
/external/protobuf/src/google/protobuf/compiler/objectivec/ |
objectivec_helpers.cc | 264 return StringReplace(to_escape, "?", "\\?", true); 827 const string line = StringReplace(lines[i], "\\", "\\\\", true); 829 prefix + StringReplace(line, "@", "\\@", true) + suffix; [all...] |
/external/tensorflow/tensorflow/compiler/xla/service/ |
hlo_graph_dumper.cc | 54 using ::tensorflow::str_util::StringReplace; 211 return StringReplace(StringReplace(s, "<", "<", /*replace_all=*/true), ">", [all...] |