Home
last modified time | relevance | path

Searched refs:StrAppend (Results 1 – 25 of 197) sorted by relevance

12345678

/external/tensorflow/tensorflow/python/framework/
Dpython_op_gen.cc58 strings::StrAppend(result, indentation, in AddInferredAttr()
68 strings::StrAppend(&ret, ", "); in VectorToTuple()
70 strings::StrAppend(&ret, l[i]); in VectorToTuple()
72 strings::StrAppend(&ret, ")"); in VectorToTuple()
80 strings::StrAppend(result, prefix, var, " = "); in Unflatten()
81 if (i > 0) strings::StrAppend(result, var, "[:", i, "] + "); in Unflatten()
85 strings::StrAppend(result, "[", var, "[:", output_sizes[i], "]] + ", in Unflatten()
88 strings::StrAppend(result, "[", var, "[", i, ":", i, " + ", in Unflatten()
93 strings::StrAppend(result, "[", var, "[", i, ":]]"); in Unflatten()
95 strings::StrAppend(result, "\n"); in Unflatten()
[all …]
Dpython_op_gen_internal.cc134 strings::StrAppend(&result, "\n"); in Indent()
136 strings::StrAppend(&result, Spaces(rest), line, "\n"); in Indent()
149 strings::StrAppend(dest, "\n", append); in AppendWithinWidth()
151 strings::StrAppend(dest, " ", append); in AppendWithinWidth()
179 if (!ret.empty()) strings::StrAppend(&ret, ", "); in TypeListString()
182 strings::StrAppend(&ret, PythonDataTypeString(RemoveRefType(dtype)), in TypeListString()
185 strings::StrAppend(&ret, "`", PythonDataTypeString(dtype), "`"); in TypeListString()
226 strings::StrAppend(&prefix, " mutable"); in ArgTypeName()
288 strings::StrAppend(&result, "\n Returns:\n"); in GetReturns()
290 strings::StrAppend(&result, " The created Operation.\n"); in GetReturns()
[all …]
/external/tensorflow/tensorflow/cc/framework/
Dcc_op_gen.cc126 strings::StrAppend(&ret, indent, "///\n"); in MakeComment()
128 strings::StrAppend(&ret, indent, "/// ", in MakeComment()
147 if (d > 0) strings::StrAppend(&ret, ", "); in PrintTensorShape()
148 strings::StrAppend(&ret, shape.dim_size(d)); in PrintTensorShape()
150 strings::StrAppend(&ret, "}"); in PrintTensorShape()
158 if (i > 0) strings::StrAppend(&ret, ", "); in PrintArray()
159 strings::StrAppend(&ret, array[i]); in PrintArray()
194 if (i > 0) strings::StrAppend(&ret, " "); in PrintTensor()
195 strings::StrAppend(&ret, absl::CEscape(t.flat<tstring>()(i))); in PrintTensor()
234 if (i > 0) strings::StrAppend(&ret, ", "); in PrintAttrValue()
[all …]
/external/tensorflow/tensorflow/core/framework/
Dcollective.cc98 strings::StrAppend(&v, d, ","); in ToString()
100 strings::StrAppend(&v, "} task_names={"); in ToString()
102 strings::StrAppend(&v, n, ", "); in ToString()
104 strings::StrAppend(&v, "} num_devices_per_task={"); in ToString()
106 strings::StrAppend(&v, dpt.first, ": ", dpt.second, ", "); in ToString()
108 strings::StrAppend(&v, "}, collective_name=", impl_details.collective_name, in ToString()
110 strings::StrAppend(&v, "}, subdiv_offsets={"); in ToString()
112 strings::StrAppend(&v, d, ","); in ToString()
114 strings::StrAppend(&v, "}, subdiv_perms={"); in ToString()
116 strings::StrAppend(&v, "{"); in ToString()
[all …]
Dop_def_util.cc56 strings::StrAppend(&allowed_str, ", "); in AllowedTypeValue()
58 strings::StrAppend(&allowed_str, in AllowedTypeValue()
76 strings::StrAppend(&allowed_str, ", "); in AllowedStringValue()
78 strings::StrAppend(&allowed_str, "\"", allowed, "\""); in AllowedStringValue()
385 if (!ret.empty()) strings::StrAppend(&ret, ", "); in SummarizeArgs()
386 strings::StrAppend(&ret, arg.name(), ":"); in SummarizeArgs()
387 if (arg.is_ref()) strings::StrAppend(&ret, "Ref("); in SummarizeArgs()
389 strings::StrAppend(&ret, arg.number_attr(), "*"); in SummarizeArgs()
392 strings::StrAppend(&ret, DataTypeString(arg.type())); in SummarizeArgs()
394 strings::StrAppend(&ret, arg.type_attr()); in SummarizeArgs()
[all …]
Dop_gen_lib.cc36 strings::StrAppend(&result, prefix); in WordWrap()
41 strings::StrAppend(&result, str); in WordWrap()
49 strings::StrAppend(&result, str); in WordWrap()
64 strings::StrAppend(&result, to_append); in WordWrap()
65 if (!str.empty()) strings::StrAppend(&result, indent_next_line); in WordWrap()
156 strings::StrAppend(ml, up_to_colon, ": <<", end, "\n", unescaped, "\n", end); in ConvertLine()
159 strings::StrAppend(ml, suffix); in ConvertLine()
161 strings::StrAppend(ml, "\n"); in ConvertLine()
177 strings::StrAppend(&ml, line, "\n"); in PBTxtToMultiline()
207 strings::StrAppend(&pbtxt, line); in PBTxtFromMultiline()
[all …]
/external/tensorflow/tensorflow/core/util/
Dbcast_test.cc33 strings::StrAppend(&ret, "[", absl::StrJoin(b.x_reshape(), ","), "]"); in BCast()
34 strings::StrAppend(&ret, "[", absl::StrJoin(b.x_bcast(), ","), "]"); in BCast()
35 strings::StrAppend(&ret, "[", absl::StrJoin(b.y_reshape(), ","), "]"); in BCast()
36 strings::StrAppend(&ret, "[", absl::StrJoin(b.y_bcast(), ","), "]"); in BCast()
37 strings::StrAppend(&ret, "[", absl::StrJoin(b.result_shape(), ","), "]"); in BCast()
38 strings::StrAppend(&ret, "[", absl::StrJoin(b.output_shape(), ","), "]"); in BCast()
39 strings::StrAppend(&ret, "[", absl::StrJoin(b.grad_x_reduce_idx(), ","), "]"); in BCast()
40 strings::StrAppend(&ret, "[", absl::StrJoin(b.grad_y_reduce_idx(), ","), "]"); in BCast()
50 strings::StrAppend(&ret, "[", absl::StrJoin(b.x_batch_indices(), ","), "]"); in BCastBatchIndices()
51 strings::StrAppend(&ret, "[", absl::StrJoin(b.y_batch_indices(), ","), "]"); in BCastBatchIndices()
[all …]
/external/tensorflow/tensorflow/js/ops/
Dts_op_gen.cc103 strings::StrAppend(&result_, "\n"); in Code()
161 strings::StrAppend(&inputs, input_op_args_[*iter].op_def_arg.name()); in InputForAttr()
168 strings::StrAppend(&result_, "export function ", api_def_.endpoint(0).name(), in AddMethodSignature()
176 strings::StrAppend(&result_, ", "); in AddMethodSignature()
181 strings::StrAppend(&result_, op_def_arg.name(), ": "); in AddMethodSignature()
183 strings::StrAppend(&result_, "tfc.Tensor[]"); in AddMethodSignature()
185 strings::StrAppend(&result_, "tfc.Tensor"); in AddMethodSignature()
190 strings::StrAppend(&result_, "): tfc.Tensor {\n"); in AddMethodSignature()
192 strings::StrAppend(&result_, "): tfc.Tensor[] {\n"); in AddMethodSignature()
197 strings::StrAppend(&result_, " const opAttrs = [\n"); in AddOpAttrs()
[all …]
/external/perfetto/src/trace_processor/util/
Dprotozero_to_text.cc40 void StrAppend(std::string* out, const T& to_add) { in StrAppend() function
46 void StrAppend(std::string* out, const T& first, strings... values) { in StrAppend() function
63 StrAppend(out, separator, indent, fd.name(), ": ", in ConvertProtoTypeToFieldAndValueString()
67 StrAppend(out, separator, indent, fd.name(), ": ", in ConvertProtoTypeToFieldAndValueString()
73 StrAppend(out, separator, indent, fd.name(), ": ", in ConvertProtoTypeToFieldAndValueString()
77 StrAppend(out, separator, indent, fd.name(), ": ", in ConvertProtoTypeToFieldAndValueString()
81 StrAppend(out, separator, indent, fd.name(), ": ", in ConvertProtoTypeToFieldAndValueString()
85 StrAppend(out, separator, indent, fd.name(), ": ", in ConvertProtoTypeToFieldAndValueString()
89 StrAppend(out, separator, indent, fd.name(), ": ", in ConvertProtoTypeToFieldAndValueString()
93 StrAppend(out, separator, indent, fd.name(), ": ", in ConvertProtoTypeToFieldAndValueString()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_module_config.cc29 using absl::StrAppend;
46 StrAppend(&key, "::("); in compilation_cache_key()
52 StrAppend(&key, absl::StrJoin(params, ", "), ") => ", in compilation_cache_key()
57 StrAppend(&key, "forcing recompile ", counter++); in compilation_cache_key()
60 StrAppend(&key, "::replica_count=", replica_count()); in compilation_cache_key()
62 StrAppend(&key, debug_options_.DebugString()); in compilation_cache_key()
64 StrAppend(&key, "::intra_op_parallelism_threads=", in compilation_cache_key()
67 StrAppend(&key, "::alias_passthrough_params=", alias_passthrough_params_); in compilation_cache_key()
/external/tensorflow/tensorflow/core/common_runtime/
Dbuild_graph_options.cc25 strings::StrAppend(&rv, s, ", "); in DebugString()
27 strings::StrAppend(&rv, "\nFetch endpoints: "); in DebugString()
29 strings::StrAppend(&rv, s, ", "); in DebugString()
31 strings::StrAppend(&rv, "\nTarget nodes: "); in DebugString()
33 strings::StrAppend(&rv, s, ", "); in DebugString()
36 strings::StrAppend(&rv, "\ncollective_graph_key: ", collective_graph_key); in DebugString()
50 strings::StrAppend(&rv, "\ncollective_order: ", collective_order_str); in DebugString()
Dcollective_util.cc59 strings::StrAppend(&buf, "Subdiv ", sdi, " device order:\n"); in SubdivPermDebugString()
64 strings::StrAppend(&buf, col_params.instance.device_names[idx], "\n"); in SubdivPermDebugString()
67 strings::StrAppend(&buf, " subdiv_offsets: "); in SubdivPermDebugString()
69 strings::StrAppend(&buf, o, " "); in SubdivPermDebugString()
70 strings::StrAppend(&buf, " SubdivRank: "); in SubdivPermDebugString()
71 for (auto d : col_params.subdiv_rank) strings::StrAppend(&buf, d, " "); in SubdivPermDebugString()
73 strings::StrAppend(&buf, " subdiv_source_rank: "); in SubdivPermDebugString()
75 strings::StrAppend(&buf, src, " "); in SubdivPermDebugString()
77 strings::StrAppend(&buf, "\n"); in SubdivPermDebugString()
/external/libchrome/base/strings/
Dstrcat_unittest.cc31 TEST(StrAppend, 8Bit) {
35 StrAppend(&result, {std::string()});
39 StrAppend(&result, {"1"});
43 StrAppend(&result, {"1", "22", "333"});
47 TEST(StrAppend, 16Bit) {
55 StrAppend(&result, {string16()});
59 StrAppend(&result, {arg1});
63 StrAppend(&result, {arg1, arg2, arg3});
Dstrcat.h82 BASE_EXPORT void StrAppend(std::string* dest, span<const StringPiece> pieces);
83 BASE_EXPORT void StrAppend(string16* dest, span<const StringPiece16> pieces);
84 BASE_EXPORT void StrAppend(std::string* dest, span<const std::string> pieces);
85 BASE_EXPORT void StrAppend(string16* dest, span<const string16> pieces);
88 inline void StrAppend(std::string* dest, in StrAppend() function
90 return StrAppend(dest, make_span(pieces.begin(), pieces.size())); in StrAppend()
92 inline void StrAppend(string16* dest, in StrAppend() function
94 return StrAppend(dest, make_span(pieces.begin(), pieces.size())); in StrAppend()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/compiler/
Dvariable_accessor.cc78 absl::StrAppend(result, t); in FormatValue()
83 absl::StrAppend(result, absl::StrFormat("%.9ff", t)); in FormatValue()
106 absl::StrAppend(result, VariableTypeGetter()(v), "(", in operator ()()
112 absl::StrAppend(result, VariableTypeGetter()(v), "(", in operator ()()
118 absl::StrAppend(result, VariableTypeGetter()(v), "(", in operator ()()
125 absl::StrAppend(result, type, "[", v.size(), "]("); in operator ()()
131 absl::StrAppend(result, ","); in operator ()()
135 absl::StrAppend(result, ")"); in operator ()()
149 absl::StrAppend(result, "shared highp ", GetVariableType(variable.value), in operator ()()
155 absl::StrAppend(result, "shared highp ", GetVariableType(variable.value), in operator ()()
[all …]
Dobject_accessor.cc50 absl::StrAppend(output, "Vec4ToHalf(", value, ")"); in MaybeConvertToHalf()
52 absl::StrAppend(output, value); in MaybeConvertToHalf()
59 absl::StrAppend(output, "Vec4FromHalf(", value, ")"); in MaybeConvertFromHalf()
61 absl::StrAppend(output, value); in MaybeConvertFromHalf()
73 absl::StrAppend(result, "texelFetch(", element.object_name, ", ivec2(", in operator ()()
76 absl::StrAppend(result, "imageLoad(", element.object_name, ", ivec2(", in operator ()()
89 absl::StrAppend(result, "texelFetch(", element.object_name, ", ivec", in operator ()()
93 absl::StrAppend(result, "imageLoad(", element.object_name, ", ivec", in operator ()()
188 absl::StrAppend(result, element.object_name, ".data[", element.indices[0], in operator ()()
203 absl::StrAppend(result, element.object_name, ".data[", element.indices[0], in operator ()()
[all …]
Drename.cc49 absl::StrAppend(output, "INVALID_SYNTAX"); in Rewrite()
60 absl::StrAppend(output, inline_delimiter_, it->second.name); in Rewrite()
62 absl::StrAppend(output, "[", ref.index, "]"); in Rewrite()
64 absl::StrAppend(output, ref.field, inline_delimiter_); in Rewrite()
135 absl::StrAppend(output, "UNABLE_TO_PARSE_INDEXED_ELEMENT"); in RewriteRead()
143 absl::StrAppend(output, inline_delimiter_, it->second.first, "[", in RewriteRead()
154 absl::StrAppend(output, "UNABLE_TO_PARSE_INDEXED_ELEMENT"); in RewriteWrite()
162 absl::StrAppend(output, inline_delimiter_, it->second.first, "[", in RewriteWrite()
/external/tensorflow/tensorflow/core/platform/
Dstrcat_test.cc206 TEST(StrAppend, Basics) { in TEST() argument
219 tensorflow::strings::StrAppend(&result, strs[0]); in TEST()
223 tensorflow::strings::StrAppend(&result, strs[1], pieces[2]); in TEST()
227 tensorflow::strings::StrAppend(&result, strs[0], ", ", pieces[2]); in TEST()
231 tensorflow::strings::StrAppend(&result, strs[0], ", ", strs[1], " ", strs[2], in TEST()
236 tensorflow::strings::StrAppend(&result, pieces[0], ", ", pieces[1], " ", in TEST()
241 tensorflow::strings::StrAppend(&result, c_strs[0], ", ", c_strs[1], " ", in TEST()
246 tensorflow::strings::StrAppend(&result, "ASCII ", i32s[0], ", ", i32s[1], " ", in TEST()
251 tensorflow::strings::StrAppend(&result, ui64s[0], ", ", ui64s[1], "!"); in TEST()
258 tensorflow::strings::StrAppend(&result, "And a ", one.size(), " and a ", in TEST()
[all …]
/external/tensorflow/tensorflow/compiler/xla/
Dwindow_util.cc66 using absl::StrAppend; in ToString()
70 StrAppend(&str, ",stride=", dim.stride()); in ToString()
73 StrAppend(&str, ",padding_low=", dim.padding_low()); in ToString()
76 StrAppend(&str, ",padding_high=", dim.padding_high()); in ToString()
79 StrAppend(&str, ",base_dilation=", dim.base_dilation()); in ToString()
82 StrAppend(&str, ",window_dilation=", dim.window_dilation()); in ToString()
85 StrAppend(&str, ",window_reversal"); in ToString()
87 StrAppend(&str, ")"); in ToString()
92 using absl::StrAppend; in ToString()
99 StrAppend(&str, heading, "="); in ToString()
[all …]
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/
Dutils.cc57 using absl::StrAppend;
78 StrAppend(&out, dims.d[i]); in DebugString()
80 StrAppend(&out, "[", DebugString(dims.type[i]), "],"); in DebugString()
82 StrAppend(&out, ","); in DebugString()
85 StrAppend(&out, ")"); in DebugString()
107 StrAppend(&out, permutation.order[i], ","); in DebugString()
109 StrAppend(&out, ")"); in DebugString()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/
Dconv.cc196 absl::StrAppend(&source, "highp vec4 result", i, " = vec4(0);\n"); in GenerateCode()
198 absl::StrAppend(&source, "vec4 f;\n"); in GenerateCode()
199 absl::StrAppend(&source, "for (int l = 0; l < $src_depth$; ++l) {\n"); in GenerateCode()
201 absl::StrAppend(&source, " vec4 input", i, " = $input_data_0[gid.x * ", in GenerateCode()
205 absl::StrAppend(&source, " f = $weights[", k, ", l, gid.z]$;\n"); in GenerateCode()
207 absl::StrAppend(&source, " result", i, "[", k, "] += dot(input", i, in GenerateCode()
211 absl::StrAppend(&source, "}\n"); in GenerateCode()
214 absl::StrAppend(&source, "vec4 b = $bias[gid.z]$;\n"); in GenerateCode()
216 absl::StrAppend(&source, "result", i, " += b;\n"); in GenerateCode()
221 absl::StrAppend(&source, "$inplace_update:result", i, "$\n"); in GenerateCode()
[all …]
/external/tensorflow/tensorflow/stream_executor/lib/
Dpath.cc43 absl::StrAppend(&result, path.substr(1)); in JoinPathImpl()
45 absl::StrAppend(&result, path); in JoinPathImpl()
49 absl::StrAppend(&result, path); in JoinPathImpl()
51 absl::StrAppend(&result, "/", path); in JoinPathImpl()
/external/tensorflow/tensorflow/python/lib/core/
Dpy_util.cc89 strings::StrAppend(out, PyString_AS_STRING(v), "\n"); in TryAppendTraceback()
91 strings::StrAppend(out, PyUnicode_AsUTF8(v), "\n"); in TryAppendTraceback()
113 strings::StrAppend(&err, ": ", PyString_AS_STRING(str), "\n"); in PyExceptionFetch()
115 strings::StrAppend(&err, ": ", PyUnicode_AsUTF8(str), "\n"); in PyExceptionFetch()
119 strings::StrAppend(&err, "(unknown error message)\n"); in PyExceptionFetch()
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/kernels/
Dmultiply_add.cc61 absl::StrAppend(&result, " * ", mul_vec_.ReadLinearFLT4(context.s_coord)); in GetCoreCode()
64 absl::StrAppend(&result, " * (FLT)(", scalar_mul_.GetName(), ")"); in GetCoreCode()
67 absl::StrAppend(&result, " + ", add_vec_.ReadLinearFLT4(context.s_coord)); in GetCoreCode()
70 absl::StrAppend(&result, " + (FLT)(", scalar_add_.GetName(), ")"); in GetCoreCode()
78 absl::StrAppend(&args, ",\n ", mul_vec_.GetDeclaration()); in GetArgsDeclaration()
81 absl::StrAppend(&args, ",\n ", add_vec_.GetDeclaration()); in GetArgsDeclaration()
84 absl::StrAppend(&args, ",\n ", scalar_mul_.GetDeclaration()); in GetArgsDeclaration()
87 absl::StrAppend(&args, ",\n ", scalar_add_.GetDeclaration()); in GetArgsDeclaration()
/external/tensorflow/tensorflow/core/lib/strings/
Dproto_text_util.h46 StrAppend(output_, level_empty_ ? "" : field_separator_, indent_, in OpenNestedMessage()
48 if (!short_debug_) StrAppend(&indent_, " "); in OpenNestedMessage()
55 StrAppend(output_, level_empty_ ? "" : field_separator_, indent_, "}"); in CloseNestedMessage()
61 if (!short_debug_ && !level_empty_) StrAppend(output_, "\n"); in CloseTopMessage()
105 absl::StrAppend(output_, level_empty_ ? "" : field_separator_, indent_, in AppendFieldAndValue()

12345678