/external/tensorflow/tensorflow/core/lib/strings/ |
D | str_util_test.cc | 24 EXPECT_EQ(str_util::CEscape("hello"), "hello"); in TEST() 25 EXPECT_EQ(str_util::CEscape("hello\n"), "hello\\n"); in TEST() 26 EXPECT_EQ(str_util::CEscape("hello\r"), "hello\\r"); in TEST() 27 EXPECT_EQ(str_util::CEscape("\t\r\"'"), "\\t\\r\\\"\\'"); in TEST() 28 EXPECT_EQ(str_util::CEscape("\320hi\200"), "\\320hi\\200"); in TEST() 34 EXPECT_TRUE(str_util::CUnescape(source, &dest, &error)) << error; in ExpectCUnescapeSuccess() 55 EXPECT_TRUE(str_util::CUnescape(source, &dest, &error)); in TEST() 62 str_util::StripTrailingWhitespace(&test); in TEST() 66 str_util::StripTrailingWhitespace(&test); in TEST() 70 str_util::StripTrailingWhitespace(&test); in TEST() [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | op_def_builder.cc | 115 if (str_util::ConsumePrefix(sp, "numbertype") || in ConsumeCompoundAttrType() 116 str_util::ConsumePrefix(sp, "numerictype") || in ConsumeCompoundAttrType() 117 str_util::ConsumePrefix(sp, "quantizedtype") || in ConsumeCompoundAttrType() 118 str_util::ConsumePrefix(sp, "realnumbertype") || in ConsumeCompoundAttrType() 119 str_util::ConsumePrefix(sp, "realnumberictype")) { in ConsumeCompoundAttrType() 160 if (str_util::ConsumePrefix(&spec, "string")) { in FinalizeAttr() 162 } else if (str_util::ConsumePrefix(&spec, "int")) { in FinalizeAttr() 164 } else if (str_util::ConsumePrefix(&spec, "float")) { in FinalizeAttr() 166 } else if (str_util::ConsumePrefix(&spec, "bool")) { in FinalizeAttr() 168 } else if (str_util::ConsumePrefix(&spec, "type")) { in FinalizeAttr() [all …]
|
D | attr_value_util.cc | 170 string escaped = str_util::CEscape(str); in SummarizeString() 201 return strings::StrCat(func.name(), "[", str_util::Join(entries, ", "), "]"); in SummarizeFunc() 263 return strings::StrCat("[", str_util::Join(pieces, ", "), "]"); in SummarizeAttrValue() 322 if (str_util::StartsWith(type, "list(") && !attr_value.has_list()) { in AttrValueHasType() 333 if (num_set == 0 && !str_util::StartsWith(type, "list(")) { in AttrValueHasType() 377 bool is_list = str_util::ConsumePrefix(&type, "list("); in ParseAttrValue() 378 if (str_util::ConsumePrefix(&type, "string")) { in ParseAttrValue() 380 } else if (str_util::ConsumePrefix(&type, "int")) { in ParseAttrValue() 382 } else if (str_util::ConsumePrefix(&type, "float")) { in ParseAttrValue() 384 } else if (str_util::ConsumePrefix(&type, "bool")) { in ParseAttrValue() [all …]
|
D | op_gen_lib.cc | 55 while (str_util::EndsWith(to_append, " ")) { in WordWrap() 58 while (str_util::ConsumePrefix(&str, " ")) { in WordWrap() 70 if (str_util::ConsumePrefix(description, "=")) { in ConsumeEquals() 71 while (str_util::ConsumePrefix(description, in ConsumeEquals() 104 while (str_util::ConsumePrefix(&up_to_colon, " ")) in StartsWithFieldName() 125 while (str_util::ConsumePrefix(&after_colon, " ")) in ConvertLine() 127 if (!str_util::ConsumePrefix(&after_colon, "\"")) { in ConvertLine() 141 if (!str_util::CUnescape(escaped, &unescaped, nullptr)) { in ConvertLine() 187 while (str_util::ConsumePrefix(&line, " ")) { in FindMultiline() 189 if (str_util::ConsumePrefix(&line, "<<")) { in FindMultiline() [all …]
|
D | shape_inference_testutil.cc | 35 std::vector<string> ins_v = str_util::Split(ins, ';'); in InferShapes() 82 std::vector<string> expected_outs_v = str_util::Split(expected_outs, ';'); in InferShapes() 103 if (str_util::StartsWith(expected, "in")) { in InferShapes() 112 auto v = str_util::Split(expected, '|'); in InferShapes() 138 CHECK(str_util::StartsWith(expected, "[") && in InferShapes() 139 str_util::EndsWith(expected, "]")) in InferShapes() 145 auto expected_dims = str_util::Split(expected, ','); in InferShapes() 181 } else if (str_util::StartsWith(expected_dim, "d")) { in InferShapes() 183 auto v = str_util::Split(expected_dim, '|'); in InferShapes()
|
/external/tensorflow/tensorflow/core/profiler/ |
D | tfprof_options.cc | 33 return str_util::Join(kv_vec, ","); in KeyValueToStr() 55 str_util::Join(output_types, ",").c_str())); in ParseOutput() 65 str_util::Join(output_types, ",").c_str())); in ParseOutput() 67 kv_split = str_util::Split(output_opt.substr(opt_split + 1), ",", in ParseOutput() 68 str_util::SkipEmpty()); in ParseOutput() 98 str_util::Split(kv_str, "=", str_util::SkipEmpty()); in ParseOutput() 111 (*output_options)[kv[0]] = str_util::Join(kv_without_key, "="); in ParseOutput() 205 str_util::Join(account_type_regexes, ",").c_str(), kOptions[14], in ToString() 206 str_util::Join(start_name_regexes, ",").c_str(), kOptions[15], in ToString() 207 str_util::Join(trim_name_regexes, ",").c_str(), kOptions[16], in ToString() [all …]
|
D | profiler.cc | 152 str_util::Split(FLAGS_account_type_regexes, ',', str_util::SkipEmpty()); in Run() 154 str_util::Split(FLAGS_start_name_regexes, ',', str_util::SkipEmpty()); in Run() 156 str_util::Split(FLAGS_trim_name_regexes, ',', str_util::SkipEmpty()); in Run() 158 str_util::Split(FLAGS_show_name_regexes, ',', str_util::SkipEmpty()); in Run() 160 str_util::Split(FLAGS_hide_name_regexes, ',', str_util::SkipEmpty()); in Run() 162 str_util::Split(FLAGS_select, ',', str_util::SkipEmpty()); in Run() 235 str_util::Split(FLAGS_run_meta_path, ',', str_util::SkipEmpty()); in Run()
|
/external/tensorflow/tensorflow/core/util/ |
D | semver_test.cc | 37 if (!str_util::ConsumePrefix(s, prefix)) return false; in ConsumeDotSeparatedIdentifiers() 56 ASSERT_TRUE(str_util::ConsumeLeadingDigits(&semver, &major)); in TEST() 57 ASSERT_TRUE(str_util::ConsumePrefix(&semver, ".")); in TEST() 58 ASSERT_TRUE(str_util::ConsumeLeadingDigits(&semver, &minor)); in TEST() 59 ASSERT_TRUE(str_util::ConsumePrefix(&semver, ".")); in TEST() 66 if (str_util::ConsumePrefix(&semver, "head")) { in TEST() 70 ASSERT_TRUE(str_util::ConsumeLeadingDigits(&semver, &patch)); in TEST()
|
D | command_line_flags.cc | 34 if (str_util::ConsumePrefix(&arg, "--") && in ParseStringFlag() 35 str_util::ConsumePrefix(&arg, flag) && in ParseStringFlag() 36 str_util::ConsumePrefix(&arg, "=")) { in ParseStringFlag() 48 if (str_util::ConsumePrefix(&arg, "--") && in ParseInt32Flag() 49 str_util::ConsumePrefix(&arg, flag) && in ParseInt32Flag() 50 str_util::ConsumePrefix(&arg, "=")) { in ParseInt32Flag() 70 if (str_util::ConsumePrefix(&arg, "--") && in ParseInt64Flag() 71 str_util::ConsumePrefix(&arg, flag) && in ParseInt64Flag() 72 str_util::ConsumePrefix(&arg, "=")) { in ParseInt64Flag() 92 if (str_util::ConsumePrefix(&arg, "--") && in ParseBoolFlag() [all …]
|
D | device_name_utils.cc | 80 if (str_util::ConsumeLeadingDigits(in, &tmp)) { in ConsumeNumber() 110 return DeviceName(job, replica, task, "/", str_util::Lowercase(type), id); in LegacyName() 121 if (str_util::ConsumePrefix(&fullname, "/job:")) { in ParseFullName() 122 p->has_job = !str_util::ConsumePrefix(&fullname, "*"); in ParseFullName() 128 if (str_util::ConsumePrefix(&fullname, "/replica:")) { in ParseFullName() 129 p->has_replica = !str_util::ConsumePrefix(&fullname, "*"); in ParseFullName() 135 if (str_util::ConsumePrefix(&fullname, "/task:")) { in ParseFullName() 136 p->has_task = !str_util::ConsumePrefix(&fullname, "*"); in ParseFullName() 142 if (str_util::ConsumePrefix(&fullname, "/device:")) { in ParseFullName() 143 p->has_type = !str_util::ConsumePrefix(&fullname, "*"); in ParseFullName() [all …]
|
D | bcast_test.cc | 33 strings::StrAppend(&ret, "[", str_util::Join(b.x_reshape(), ","), "]"); in BCast() 34 strings::StrAppend(&ret, "[", str_util::Join(b.x_bcast(), ","), "]"); in BCast() 35 strings::StrAppend(&ret, "[", str_util::Join(b.y_reshape(), ","), "]"); in BCast() 36 strings::StrAppend(&ret, "[", str_util::Join(b.y_bcast(), ","), "]"); in BCast() 37 strings::StrAppend(&ret, "[", str_util::Join(b.result_shape(), ","), "]"); in BCast() 38 strings::StrAppend(&ret, "[", str_util::Join(b.output_shape(), ","), "]"); in BCast() 39 strings::StrAppend(&ret, "[", str_util::Join(b.grad_x_reduce_idx(), ","), in BCast() 41 strings::StrAppend(&ret, "[", str_util::Join(b.grad_y_reduce_idx(), ","), in BCast()
|
/external/tensorflow/tensorflow/core/profiler/internal/ |
D | tfprof_utils.cc | 65 return str_util::Join(shape, "x"); in FormatShapes() 96 return str_util::Lowercase(s1) == str_util::Lowercase(s2); in CaseEqual() 118 str_util::Split(line, ' ', str_util::SkipEmpty()); in ParseCmdLine() 218 opts->account_type_regexes = str_util::Split(StripQuote(pieces[i + 1]), in ParseCmdLine() 219 ',', str_util::SkipEmpty()); in ParseCmdLine() 225 opts->start_name_regexes = str_util::Split(StripQuote(pieces[i + 1]), ',', in ParseCmdLine() 226 str_util::SkipEmpty()); in ParseCmdLine() 232 opts->trim_name_regexes = str_util::Split(StripQuote(pieces[i + 1]), ',', in ParseCmdLine() 233 str_util::SkipEmpty()); in ParseCmdLine() 239 opts->show_name_regexes = str_util::Split(StripQuote(pieces[i + 1]), ',', in ParseCmdLine() [all …]
|
/external/tensorflow/tensorflow/core/graph/ |
D | control_flow_test.cc | 63 EXPECT_TRUE(str_util::StrContains(status.error_message(), in TEST() 66 EXPECT_TRUE(str_util::StrContains(status.error_message(), in TEST() 69 EXPECT_TRUE(str_util::StrContains(status.error_message(), in TEST() 73 str_util::StrContains(status.error_message(), "{{node outer/Switch}}")) in TEST() 112 str_util::StrContains(status.error_message(), "Mismatched parent frames")) in TEST() 114 EXPECT_TRUE(str_util::StrContains(status.error_message(), "{{node Enter2}}")) in TEST() 136 EXPECT_TRUE(str_util::StrContains(status.error_message(), in TEST() 140 str_util::StrContains(status.error_message(), "{{node sub/LoopCond}}")) in TEST() 143 str_util::StrContains(status.error_message(), "{{node LoopCond}}")) in TEST()
|
D | subgraph_test.cc | 78 LOG(INFO) << "Nodes present: " << str_util::Join(actual_nodes, " "); in ExpectNodes() 80 std::vector<string> expected_nodes = str_util::Split(nodes, ','); in ExpectNodes() 91 << "\nActual: " << str_util::Join(actual_nodes, ",") in ExpectNodes() 92 << "\nExpected: " << str_util::Join(expected_nodes, ","); in ExpectNodes() 113 str_util::Split(fed_str, ',', str_util::SkipEmpty()); in Subgraph() 115 str_util::Split(fetch_str, ',', str_util::SkipEmpty()); in Subgraph() 117 str_util::Split(targets_str, ',', str_util::SkipEmpty()); in Subgraph() 316 bool ok = str_util::StrContains(base, substr); in HasSubstr()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | remote_fused_graph_rewriter_transform.cc | 111 str_util::Split(input_types_str, ","); in PlaceShapeType() 113 str_util::Split(input_shapes_str, ":"); in PlaceShapeType() 120 CHECK(str_util::SplitAndParseAsInts(input_shapes_strs.at(i), ',', &dims)); in PlaceShapeType() 164 str_util::Split(fused_nodes_str, ","); in FuseRemoteGraph() 173 str_util::Split(border_inputs_str, ","); in FuseRemoteGraph() 175 str_util::Split(border_outputs_str, ","); in FuseRemoteGraph() 188 str_util::Split(fused_op_types_str, ","); in FuseRemoteGraph() 235 str_util::Split(fused_nodes_str, ","); in PlaceRemoteGraphArguments() 239 str_util::Split(border_inputs_str, ","); in PlaceRemoteGraphArguments() 241 str_util::Split(border_outputs_str, ","); in PlaceRemoteGraphArguments() [all …]
|
D | dynamic_stitch_op_test.cc | 92 EXPECT_TRUE(str_util::StrContains( in TEST_F() 107 EXPECT_TRUE(str_util::StrContains( in TEST_F() 124 str_util::StrContains(s.ToString(), in TEST_F() 139 EXPECT_TRUE(str_util::StrContains( in TEST_F()
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | session_test.cc | 35 EXPECT_TRUE(str_util::StrContains( in TEST() 47 return str_util::StartsWith(options.target, "fake"); in AcceptsOptions() 73 str_util::StrContains(s.error_message(), "Multiple session factories")); in TEST() 74 EXPECT_TRUE(str_util::StrContains(s.error_message(), "FAKE_SESSION_1")); in TEST() 75 EXPECT_TRUE(str_util::StrContains(s.error_message(), "FAKE_SESSION_2")); in TEST()
|
D | placer_test.cc | 312 EXPECT_TRUE(::tensorflow::str_util::StrContains( \ 780 EXPECT_TRUE(str_util::StrContains( in TEST_F() 832 EXPECT_TRUE(str_util::StrContains( in TEST_F() 839 EXPECT_TRUE(str_util::StrContains( in TEST_F() 934 EXPECT_TRUE(str_util::StrContains( in TEST_F() 1106 EXPECT_TRUE(str_util::StrContains( in TEST_P() 1179 EXPECT_TRUE(str_util::StrContains( in TEST_P() 1245 str_util::StrContains(s.error_message(), "No devices are registered")); in TEST_F() 1271 str_util::StrContains(s.error_message(), in TEST_F() 1277 EXPECT_TRUE(str_util::StrContains(s.error_message(), "VariableGPU: FakeGPU")) in TEST_F() [all …]
|
/external/tensorflow/tensorflow/stream_executor/lib/ |
D | str_util.h | 25 using tensorflow::str_util::Join; 26 using tensorflow::str_util::Split; 32 if (tensorflow::str_util::EndsWith(str, suffix)) { in StripSuffixString() 38 using tensorflow::str_util::Lowercase;
|
/external/tensorflow/tensorflow/tools/graph_transforms/ |
D | freeze_requantization_ranges.cc | 39 std::vector<string> file_lines = str_util::Split(file_data, '\n'); in ExtractMinMaxRecords() 43 if (!str_util::StrContains(file_line, in ExtractMinMaxRecords() 47 std::vector<string> line_parts = str_util::Split(file_line, ';'); in ExtractMinMaxRecords() 56 if (str_util::StartsWith(line_parts[i], requant_prefix)) { in ExtractMinMaxRecords() 67 std::vector<string> min_max_parts = str_util::Split(min_max_string, '['); in ExtractMinMaxRecords() 72 std::vector<string> min_string_parts = str_util::Split(min_string, ']'); in ExtractMinMaxRecords() 82 std::vector<string> max_string_parts = str_util::Split(max_string, ']'); in ExtractMinMaxRecords() 92 if (!str_util::EndsWith(name_string, print_suffix)) { in ExtractMinMaxRecords()
|
/external/tensorflow/tensorflow/contrib/session_bundle/ |
D | signature_test.cc | 38 bool ok = str_util::StrContains(base, substr); in HasSubstr() 73 EXPECT_TRUE(str_util::StrContains(status.error_message(), in TEST() 90 EXPECT_TRUE(str_util::StrContains(status.error_message(), in TEST() 126 EXPECT_TRUE(str_util::StrContains(status.error_message(), in TEST() 145 EXPECT_TRUE(str_util::StrContains( in TEST() 180 EXPECT_TRUE(str_util::StrContains(status.error_message(), in TEST() 197 EXPECT_TRUE(str_util::StrContains(status.error_message(), in TEST() 231 EXPECT_TRUE(str_util::StrContains(status.error_message(), in TEST() 374 EXPECT_TRUE(str_util::StrContains(status.error_message(), "Data is gone")) in TEST() 391 str_util::StrContains(status.error_message(), "Expected 1 output")) in TEST() [all …]
|
/external/tensorflow/tensorflow/java/src/gen/cc/ |
D | op_specs.cc | 133 if (str_util::ConsumePrefix(&attr_type, "list(")) { in TypesOf() 211 const RE2 markup_expr("(" + str_util::Join(markups_subexpr, "|") + ")"); in ParseDocumentation() 222 if (str_util::StartsWith(markup, "\n")) { in ParseDocumentation() 224 if (str_util::StrContains(markup, "*")) { in ParseDocumentation() 232 } else if (!str_util::StartsWith(input, "```")) { in ParseDocumentation() 236 } else if (str_util::StartsWith(markup, "```")) { in ParseDocumentation() 243 } else if (str_util::StartsWith("(" + markup + ")", "`")) { in ParseDocumentation() 264 } else if (str_util::StartsWith(markup, "[")) { in ParseDocumentation() 270 str_util::StartsWith(input, label + link)) { in ParseDocumentation() 337 std::vector<string> name_tokens = str_util::Split(endpoint_def.name(), "."); in CreateEndpoint()
|
/external/tensorflow/tensorflow/python/framework/ |
D | python_op_gen_main.cc | 74 std::vector<string> op_names = str_util::Split(arg, ','); in ParseOpListCommandLine() 99 if (str_util::ConsumePrefix(&command_str, kExecPrefix) && in InferSourceFileName() 100 str_util::EndsWith(command_str, kExecSuffix)) { in InferSourceFileName() 158 std::vector<tensorflow::string> api_def_dirs = tensorflow::str_util::Split( in main() 159 argv[1], ",", tensorflow::str_util::SkipEmpty()); in main()
|
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/ |
D | data_spec.h | 42 std::vector<string> tokens = tensorflow::str_util::Split(serialized, ' '); in ParseFromString() 79 std::vector<string> tokens = tensorflow::str_util::Split(serialized, "[]"); in ParseFromString() 81 tensorflow::str_util::Split(tokens[0], ' '); in ParseFromString() 120 std::vector<string> tokens = tensorflow::str_util::Split(cols, "{}"); in ParseColumns()
|
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/ |
D | grpc_testlib_server.cc | 46 for (const string& job_str : str_util::Split(job_spec, ',')) { in FillServerDef() 49 const std::vector<string> job_pieces = str_util::Split(job_str, '|'); in FillServerDef() 55 const std::vector<string> host_ports = str_util::Split(spec, ';'); in FillServerDef() 64 << str_util::Join(host_ports, ", ") << "}"; in FillServerDef()
|