/external/tensorflow/tensorflow/core/lib/strings/ |
D | strcat_test.cc | 33 TEST(StrCat, Ints) { in TEST() argument 48 answer = tensorflow::strings::StrCat(s, us); in TEST() 50 answer = tensorflow::strings::StrCat(i, ui); in TEST() 52 answer = tensorflow::strings::StrCat(l, ul); in TEST() 54 answer = tensorflow::strings::StrCat(ll, ull); in TEST() 56 answer = tensorflow::strings::StrCat(ptrdiff, size); in TEST() 58 answer = tensorflow::strings::StrCat(ssize, intptr); in TEST() 60 answer = tensorflow::strings::StrCat(uintptr, 0); in TEST() 64 TEST(StrCat, Basics) { in TEST() argument 76 result = tensorflow::strings::StrCat(false, true, 2, 3); in TEST() [all …]
|
/external/libchrome/base/strings/ |
D | strcat_unittest.cc | 11 TEST(StrCat, 8Bit) { 12 EXPECT_EQ("", StrCat({""})); 13 EXPECT_EQ("1", StrCat({"1"})); 14 EXPECT_EQ("122", StrCat({"1", "22"})); 15 EXPECT_EQ("122333", StrCat({"1", "22", "333"})); 16 EXPECT_EQ("1223334444", StrCat({"1", "22", "333", "4444"})); 17 EXPECT_EQ("122333444455555", StrCat({"1", "22", "333", "4444", "55555"})); 20 TEST(StrCat, 16Bit) { 25 EXPECT_EQ(ASCIIToUTF16(""), StrCat({string16()})); 26 EXPECT_EQ(ASCIIToUTF16("1"), StrCat({arg1})); [all …]
|
D | strcat.h | 61 BASE_EXPORT std::string StrCat(span<const StringPiece> pieces); 62 BASE_EXPORT string16 StrCat(span<const StringPiece16> pieces); 63 BASE_EXPORT std::string StrCat(span<const std::string> pieces); 64 BASE_EXPORT string16 StrCat(span<const string16> pieces); 67 inline std::string StrCat(std::initializer_list<StringPiece> pieces) { in StrCat() function 68 return StrCat(make_span(pieces.begin(), pieces.size())); in StrCat() 70 inline string16 StrCat(std::initializer_list<StringPiece16> pieces) { in StrCat() function 71 return StrCat(make_span(pieces.begin(), pieces.size())); in StrCat()
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | gpu_fusible_test.cc | 38 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 58 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 95 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 119 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 156 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 182 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 199 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 216 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 235 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 254 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() [all …]
|
D | multi_output_fusion_test.cc | 50 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 77 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 104 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 133 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 168 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 201 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 231 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 262 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 280 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() 304 auto module = ParseHloString(absl::StrCat(kModulePrefix, R"( in TEST_F() [all …]
|
/external/tensorflow/tensorflow/core/kernels/data/ |
D | stats_utils.cc | 36 return strings::StrCat(prefix, kDelimiter, kExecutionTime); in ExecutionTimeHistogramName() 40 return strings::StrCat(prefix, kDelimiter, kThreadUtilization); in ThreadUtilizationScalarName() 44 return strings::StrCat(prefix, kDelimiter, kBufferSize); in BufferSizeScalarName() 48 return strings::StrCat(prefix, kDelimiter, kBufferCapacity); in BufferCapacityScalarName() 52 return strings::StrCat(prefix, kDelimiter, kBufferUtilization); in BufferUtilizationHistogramName() 56 return strings::StrCat(prefix, kDelimiter, kFilteredElements); in FilterdElementsScalarName() 60 return strings::StrCat(prefix, kDelimiter, kDroppedElements); in DroppedElementsScalarName() 64 return strings::StrCat(prefix, kDelimiter, kFeaturesCount); in FeatureHistogramName() 68 return strings::StrCat(prefix, kDelimiter, kFeatureValuesCount); in FeatureValueHistogramName()
|
/external/tensorflow/tensorflow/stream_executor/ |
D | device_description.cc | 72 absl::StrCat(thread_dim.x, ",", thread_dim.y, ",", thread_dim.z); in ToMap() 75 absl::StrCat(block_dim.x, ",", block_dim.y, ",", block_dim.z); in ToMap() 77 result["Threads Per Core Limit"] = absl::StrCat(threads_per_core_limit()); in ToMap() 78 result["Threads Per Block Limit"] = absl::StrCat(threads_per_block_limit()); in ToMap() 80 absl::StrCat(registers_per_block_limit()); in ToMap() 82 result["Device Address Bits"] = absl::StrCat(device_address_bits()); in ToMap() 85 result["Memory Bandwidth"] = absl::StrCat( in ToMap() 93 result["Clock Rate GHz"] = absl::StrCat(clock_rate_ghz()); in ToMap() 95 result["CUDA Compute Capability"] = absl::StrCat( in ToMap() 98 result["NUMA Node"] = absl::StrCat(numa_node()); in ToMap() [all …]
|
D | dnn.cc | 233 return absl::StrCat(algo_id, ", ", algo_id_no_scratch); in ToString() 299 string depth = absl::StrCat("d", feature_map_count()); in ToShortString() 300 string batch = absl::StrCat("b", count()); in ToShortString() 317 return absl::StrCat(spatial, depth, batch, suffix); in ToShortString() 319 return absl::StrCat(spatial, batch, depth, suffix); in ToShortString() 321 return absl::StrCat(batch, spatial, depth, suffix); in ToShortString() 323 return absl::StrCat(batch, depth, spatial, suffix); in ToShortString() 325 return absl::StrCat(batch, depth, spatial, suffix, "(VECT_C)"); in ToShortString() 414 string od = absl::StrCat("od", output_feature_map_count()); in ToShortString() 415 string id = absl::StrCat("id", input_feature_map_count()); in ToShortString() [all …]
|
/external/tensorflow/tensorflow/python/framework/ |
D | python_op_gen_internal.cc | 110 if (IsPythonReserved(s)) return strings::StrCat(s, "_"); in AvoidPythonReserved() 126 result = strings::StrCat(Spaces(initial), line, "\n"); in Indent() 166 return strings::StrCat("mutable `", PythonDataTypeString(dtype), "`"); in TypeString() 168 return strings::StrCat("`", PythonDataTypeString(dtype), "`"); in TypeString() 189 return strings::StrCat("A `Tensor` of type ", type_str, "."); in SingleTensorName() 203 prefix = strings::StrCat("A list of `", arg.number_attr(), "`"); in ArgTypeName() 207 prefix = strings::StrCat("A list of at least ", attr->minimum()); in ArgTypeName() 212 prefix = strings::StrCat("A list with the same length as `", in ArgTypeName() 217 return strings::StrCat(prefix, " `Tensor` objects with type ", in ArgTypeName() 225 return strings::StrCat(prefix, " `Tensor` objects with type `", in ArgTypeName() [all …]
|
/external/tensorflow/tensorflow/core/kernels/data/experimental/ |
D | parallel_interleave_dataset_op.cc | 116 this, strings::StrCat(prefix, "::ParallelInterleave")}); in MakeIteratorInternal() 400 full_name(strings::StrCat("interleave_indices_", i)), in SaveInternal() 407 full_name(strings::StrCat("staging_indices_", i)), in SaveInternal() 457 full_name(strings::StrCat("interleave_indices_", i)), &temp)); in RestoreInternal() 478 full_name(strings::StrCat("staging_indices_", i)), &temp)); in RestoreInternal() 497 strings::StrCat("tf_data_parallel_interleave_worker_", i), in RestoreInternal() 596 strings::StrCat("tf_data_parallel_interleave_worker_", i), in EnsureWorkerThreadsStarted() 820 string prefix = strings::StrCat("worker_", index); in WriteWorkerStateLocked() 822 full_name(strings::StrCat(prefix, "_input_size")), in WriteWorkerStateLocked() 826 full_name(strings::StrCat(prefix, "_input_", i)), in WriteWorkerStateLocked() [all …]
|
/external/tensorflow/tensorflow/core/graph/ |
D | quantize_training.cc | 159 if (node->name() == strings::StrCat(save_prefix, "/restore_all")) { in FindRestoreAllOp() 259 const string restore_op_name = strings::StrCat(name_prefix, "/RestoreV2"); in AddRestoreVariableSubgraphs() 260 const string assign_op_name = strings::StrCat(name_prefix, "/Assign"); in AddRestoreVariableSubgraphs() 267 strings::StrCat(graph->NewName(restore_op_name), "_qt"); in AddRestoreVariableSubgraphs() 269 strings::StrCat(graph->NewName(assign_op_name), "_qt"); in AddRestoreVariableSubgraphs() 271 strings::StrCat(new_restore_op_name, "/tensor_names"); in AddRestoreVariableSubgraphs() 273 strings::StrCat(new_restore_op_name, "/shape_and_slices"); in AddRestoreVariableSubgraphs() 335 name_prefix = strings::StrCat(name_prefix, "/ReductionAxes"); in MakeReductionAxes() 340 NodeBuilder(strings::StrCat(name_prefix, "/RangeStart"), "Const") in MakeReductionAxes() 348 NodeBuilder(strings::StrCat(name_prefix, "/RangeDelta"), "Const") in MakeReductionAxes() [all …]
|
D | quantize_training_test.cc | 114 FindNode(g, strings::StrCat(identity->name(), "/QuantizeAndDequantizeV2"), in TEST_F() 121 FindNode(g, strings::StrCat(relu->name(), "/QuantizeAndDequantizeV2"), in TEST_F() 165 FindNode(g, strings::StrCat(relu6->name(), "/QuantizeAndDequantizeV2"), in TEST_F() 172 FindNode(g, strings::StrCat(relu->name(), "/QuantizeAndDequantizeV2"), in TEST_F() 217 Status s = FindNode(g, strings::StrCat(d->name(), "/QuantizeAndDequantizeV2"), in TEST_F() 223 FindNode(g, strings::StrCat(relu->name(), "/QuantizeAndDequantizeV2"), in TEST_F() 226 FindNode(g, strings::StrCat(identity->name(), "/QuantizeAndDequantizeV2"), in TEST_F() 229 g, strings::StrCat(c->name(), "/QuantizeAndDequantizeV2"), &found_node)); in TEST_F() 271 Status s = FindNode(g, strings::StrCat(d->name(), "/FakeQuantWithMinMaxVars"), in TEST_F() 277 FindNode(g, strings::StrCat(relu->name(), "/FakeQuantWithMinMaxVars"), in TEST_F() [all …]
|
/external/tensorflow/tensorflow/contrib/session_bundle/ |
D | signature.cc | 41 return errors::Internal(strings::StrCat( in BatchSizesMatch() 55 strings::StrCat("Expected exactly one signatures proto in : ", in GetSignatures() 83 strings::StrCat("Expected a default signature in: ", in GetClassificationSignature() 87 return errors::FailedPrecondition(strings::StrCat( in GetClassificationSignature() 103 strings::StrCat("Missing signature named \"", name, in GetNamedClassificationSignature() 108 strings::StrCat("Expected a classification signature for name \"", name, in GetNamedClassificationSignature() 138 strings::StrCat("Expected ", output_tensor_names.size(), in RunClassification() 158 strings::StrCat("Expected a default signature in: ", in GetRegressionSignature() 162 return errors::FailedPrecondition(strings::StrCat( in GetRegressionSignature() 190 strings::StrCat("Expected ", output_tensor_names.size(), in RunRegression() [all …]
|
/external/tensorflow/tensorflow/tools/proto_text/ |
D | gen_proto_text_functions_lib.cc | 37 string StrCat(const Args&... args) { in StrCat() function 45 *to_append += StrCat(args...); in StrAppend() 170 return StrCat(GetClassName(*d.containing_type()), "_", d.name()); in GetClassName() 176 return StrCat(GetClassName(*ed.containing_type()), "_", ed.name()); in GetClassName() 182 return StrCat(GetPackageReferencePrefix(d.file()), GetClassName(d)); in GetQualifiedName() 188 return StrCat(GetPackageReferencePrefix(d.file()), GetClassName(d)); in GetQualifiedName() 194 return StrCat(GetPackageReferencePrefix(d.file()), in GetQualifiedAppendFn() 201 return StrCat("EnumName_", GetClassName(enum_d)); in GetEnumNameFn() 206 return StrCat(GetPackageReferencePrefix(enum_d.file()), in GetQualifiedEnumNameFn() 324 StrCat("msg.", name, "().at(key)")); in AppendFieldAppend() [all …]
|
/external/tensorflow/tensorflow/core/util/ |
D | equal_graph_def.cc | 55 *diff = strings::StrCat("Did not find expected node '", in EqualRepeatedNodeDef() 71 strings::StrCat("Found unexpected node '", in EqualRepeatedNodeDef() 112 *diff = strings::StrCat("Actual node name '", actual.name(), in EqualNodeDef() 120 *diff = strings::StrCat("Node named '", actual.name(), "' has op '", in EqualNodeDef() 129 *diff = strings::StrCat("Node named '", actual.name(), "' has device '", in EqualNodeDef() 138 *diff = strings::StrCat("Node named '", actual.name(), "' has inputs '", in EqualNodeDef() 154 actual.input(i) != strings::StrCat(expected.input(i), ":0") && in EqualNodeDef() 155 strings::StrCat(actual.input(i), ":0") != expected.input(i)) { in EqualNodeDef() 157 *diff = strings::StrCat("Node named '", actual.name(), "' has input ", in EqualNodeDef() 175 *diff = strings::StrCat("Node named '", actual.name(), in EqualNodeDef() [all …]
|
D | tensor_slice_reader_test.cc | 69 const string fname = strings::StrCat(fname_base, "_0"); in SimpleFloatHelper() 91 const string fname = strings::StrCat(fname_base, "_1"); in SimpleFloatHelper() 115 const string filepattern = strings::StrCat(fname_base, "_*"); in SimpleFloatHelper() 194 const string fname = strings::StrCat(fname_base, "_0"); in SimpleIntXHelper() 216 const string fname = strings::StrCat(fname_base, "_1"); in SimpleIntXHelper() 240 const string filepattern = strings::StrCat(fname_base, "_*"); in SimpleIntXHelper() 326 const string fname = strings::StrCat(fname_base, "_0"); in TEST_SIMPLE_INT() 348 const string fname = strings::StrCat(fname_base, "_1"); in TEST_SIMPLE_INT() 373 const string filepattern = strings::StrCat(fname_base, "_*"); in TEST_SIMPLE_INT() 437 strings::StrCat("Checkpoint min consumer version ", in TEST() [all …]
|
D | reporter_test.cc | 72 strings::StrCat(testing::TmpDir(), "/test_reporter_dupe"), "t1"); in TEST() 77 strings::StrCat(testing::TmpDir(), "/test_reporter_dupe"), "t1"); in TEST() 85 strings::StrCat(testing::TmpDir(), "/test_reporter_create_close"), "t1"); in TEST() 96 strings::StrCat(testing::TmpDir(), "/test_reporter_benchmarks_"); in TEST() 102 string expected_fname = strings::StrCat(fname, "b1__2__3"); in TEST() 120 strings::StrCat(testing::TmpDir(), "/test_reporter_benchmarks_"); in TEST() 127 string expected_fname = strings::StrCat(fname, "b2__3__4"); in TEST()
|
/external/tensorflow/tensorflow/tools/optimization/ |
D | gpu_optimization_pass_runner_main.cc | 37 absl::StrCat("/job:localhost/replica:0/task:0/device:CPU:", i), in main() 40 absl::StrCat("/job:localhost/replica:0/task:0/device:GPU:", i), in main() 43 absl::StrCat("/job:localhost/replica:0/task:0/device:XLA_CPU:", i), in main() 46 absl::StrCat("/job:localhost/replica:0/task:0/device:XLA_GPU:", i), in main() 49 absl::StrCat("/job:localhost/replica:0/task:0/device:CPU_XLA_JIT:", i), in main() 52 absl::StrCat("/job:localhost/replica:0/task:0/device:GPU_XLA_JIT:", i), in main()
|
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/ |
D | grpc_testlib.cc | 36 ret->targets_[i] = strings::StrCat("localhost:", port[i]); in MakeTestCluster() 39 const string tf_jobs = strings::StrCat("--tf_jobs=localhost|", in MakeTestCluster() 55 strings::StrCat(testing::TensorFlowSrcRoot(), in MakeTestCluster() 63 tf_jobs, "--tf_job=localhost", strings::StrCat("--tf_task=", i), in MakeTestCluster() 64 strings::StrCat("--num_cpus=", num_cpus), in MakeTestCluster() 65 strings::StrCat("--num_gpus=", num_gpus)}); in MakeTestCluster() 74 options_copy.target = strings::StrCat("grpc://", ret->targets_[0]); in MakeTestCluster()
|
/external/tensorflow/tensorflow/contrib/ffmpeg/default/ |
D | ffmpeg_lib.cc | 34 using tensorflow::strings::StrCat; 53 "-probesize", StrCat(kDefaultProbeSize), "-i", input_filename, in FfmpegAudioCommandLine() 58 "-ac:a:0", StrCat(channel_count), "-ar:a:0", StrCat(samples_per_second), in FfmpegAudioCommandLine() 66 command.emplace_back(StrCat("0:", stream)); in FfmpegAudioCommandLine() 68 command.emplace_back(StrCat(output_filename)); in FfmpegAudioCommandLine() 78 StrCat(kDefaultProbeSize), "-loglevel", in FfmpegVideoCommandLine() 85 StrCat(output_filename)}; in FfmpegVideoCommandLine() 328 return Status(error::Code::NOT_FOUND, StrCat("FFmpeg could not be found.")); in ReadAudioFile() 335 StrCat("fork failed: ", strerror(errno))); in ReadAudioFile() 344 StrCat("FFmpeg execution failed: ", status_code)); in ReadAudioFile() [all …]
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | field_mask_utility.cc | 62 return StrCat(prefix, segment); in AppendPathSegmentToPrefix() 64 return StrCat(prefix, ".", segment); in AppendPathSegmentToPrefix() 142 StrCat("Invalid FieldMask '", paths, in DecodeCompactFieldMaskPaths() 154 StrCat("Invalid FieldMask '", paths, in DecodeCompactFieldMaskPaths() 166 StrCat("Invalid FieldMask '", paths, in DecodeCompactFieldMaskPaths() 202 StrCat("Invalid FieldMask '", paths, in DecodeCompactFieldMaskPaths() 211 StrCat("Invalid FieldMask '", paths, in DecodeCompactFieldMaskPaths() 216 StrCat("Invalid FieldMask '", paths, in DecodeCompactFieldMaskPaths()
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | window_util.cc | 53 using absl::StrCat; in ToString() 54 string str = StrCat("(size=", dim.size()); in ToString() 79 using absl::StrCat; in ToString() 94 [](const WindowDimension& dim) { return StrCat(dim.size()); }); in ToString() 97 [](const WindowDimension& dim) { return StrCat(dim.stride()); }); in ToString() 101 return StrCat(dim.padding_low(), "_", dim.padding_high()); in ToString() 106 return StrCat(dim.base_dilation()); in ToString() 111 return StrCat(dim.window_dilation()); in ToString() 116 return StrCat(dim.window_reversal() ? 1 : 0); in ToString()
|
/external/tensorflow/tensorflow/compiler/aot/ |
D | codegen.cc | 138 dim_vars.push_back(absl::StrCat("size_t dim", dim)); in AddRewritesForShape() 139 dim_sizes += absl::StrCat("[", shape.dimensions(dim), "]"); in AddRewritesForShape() 140 indices += absl::StrCat("[dim", dim, "]"); in AddRewritesForShape() 143 rewrites->push_back({"{{I}}", absl::StrCat(i)}); in AddRewritesForShape() 199 *methods += RewriteWithName(absl::StrCat(i), code, rewrites); in GenArgMethods() 242 *methods += RewriteWithName(absl::StrCat(i), code, rewrites); in GenResultMethods() 364 : absl::StrCat(encoded.second, "ULL"); in BufferInfosToCppExpression() 365 return absl::StrCat( in BufferInfosToCppExpression() 413 ns_start += absl::StrCat("namespace ", n, " {\n"); in GenerateHeader() 419 ns_end += absl::StrCat("} // end namespace ", n, "\n"); in GenerateHeader() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | hlo_instructions.cc | 40 using absl::StrCat; 59 return StrCat( in PrecisionConfigToString() 101 return {StrCat("epsilon=", epsilon()), in ExtraAttributesToStringImpl() 102 StrCat("feature_index=", feature_index())}; in ExtraAttributesToStringImpl() 184 return {StrCat("fft_type=", FftType_Name(fft_type())), in ExtraAttributesToStringImpl() 185 StrCat("fft_length={", StrJoin(fft_length(), ","), "}")}; in ExtraAttributesToStringImpl() 222 return {StrCat("direction=", ComparisonDirectionToString(direction()))}; in ExtraAttributesToStringImpl() 257 string s = absl::StrCat(field->name(), "="); in AttributeProtoToStringVector() 381 attrs.push_back(StrCat("channel_id=", channel_id_)); in ExtraAttributesToStringImpl() 499 StrCat("{", StrJoin(group.replica_ids(), ","), "}")); in ExtraAttributesToStringImpl() [all …]
|
/external/tensorflow/tensorflow/core/grappler/optimizers/data/ |
D | vectorization_utils_test.cc | 57 NodeBuilder(strings::StrCat("arg", i), /*op_name=*/"_Arg") in WrapFunctionWithMapDefun() 85 TF_RETURN_IF_ERROR(NodeBuilder(strings::StrCat("ret", i), "_Retval") in WrapFunctionWithMapDefun() 259 EXPECT_EQ(GetRetval(*vectorized, 1), strings::StrCat(cast.name(), ":y:0")); in TEST() 330 strings::StrCat(cast_node.name(), ":y:0")); in TEST() 332 strings::StrCat(cast_node.name(), ":y:0")); in TEST() 412 EXPECT_EQ(unpack_node.input(0), strings::StrCat(cast_node.name(), ":y:0")); in TEST() 418 strings::StrCat(unpack_node.name(), ":output:0")); in TEST() 420 strings::StrCat(unpack_node.name(), ":output:1")); in TEST() 422 strings::StrCat(unpack_node.name(), ":output:2")); in TEST() 487 string control_input = strings::StrCat("^", print_node.name()); in TEST() [all …]
|