Home
last modified time | relevance | path

Searched refs:as_string (Results 1 – 25 of 163) sorted by relevance

1234567

/external/tensorflow/tensorflow/python/kernel_tests/
Das_string_op_test.py41 output = string_ops.as_string(input_, shortest=True)
46 output = string_ops.as_string(input_, scientific=True)
50 output = string_ops.as_string(input_)
54 output = string_ops.as_string(input_, width=3)
58 output = string_ops.as_string(input_, width=3, fill="0")
62 output = string_ops.as_string(input_, width=3, fill="0", shortest=True)
66 output = string_ops.as_string(input_, precision=10, width=3)
70 output = string_ops.as_string(
76 output = string_ops.as_string(input_, scientific=True, shortest=True)
80 output = string_ops.as_string(input_, fill="ab")
[all …]
Dregex_replace_op_test.py94 def as_string(s): function
105 (as_string, as_tensor),
106 (as_tensor, as_string),
/external/tensorflow/tensorflow/security/advisory/
Dtfsa-2020-013.md1 ## TFSA-2020-013: Format-string vulnerability in TensorFlow's `as_string`
8 [`tf.strings.as_string`](https://www.tensorflow.org/api_docs/python/tf/strings/as_string),
24 In [1]: tf.strings.as_string(input=[1234], width=6, fill='-')
27 In [2]: tf.strings.as_string(input=[1234], width=6, fill='+')
30 In [3]: tf.strings.as_string(input=[1234], width=6, fill="h")
33 In [4]: tf.strings.as_string(input=[1234], width=6, fill="d")
36 In [5]: tf.strings.as_string(input=[1234], width=6, fill="o")
39 In [6]: tf.strings.as_string(input=[1234], width=6, fill="x")
42 In [7]: tf.strings.as_string(input=[1234], width=6, fill="g")
45 In [8]: tf.strings.as_string(input=[1234], width=6, fill="a")
[all …]
/external/libchrome/base/strings/
Dstring_piece_unittest.cc19 static const T as_string(const char* input) { in as_string() function in base::CommonStringPieceTest
22 static const T& as_string(const T& input) { in as_string() function in base::CommonStringPieceTest
30 static const string16 as_string(const char* input) { in as_string() function in base::CommonStringPieceTest
33 static const string16 as_string(const std::string& input) { in as_string() function in base::CommonStringPieceTest
45 TypeParam lhs(TestFixture::as_string(x)); \ in TYPED_TEST()
46 TypeParam rhs(TestFixture::as_string(y)); \ in TYPED_TEST()
55 TypeParam lhs(TestFixture::as_string(x)); \ in TYPED_TEST()
56 TypeParam rhs(TestFixture::as_string(y)); \ in TYPED_TEST()
138 TypeParam alphabet(TestFixture::as_string("abcdefghijklmnopqrstuvwxyz")); in TYPED_TEST()
139 TypeParam abc(TestFixture::as_string("abc")); in TYPED_TEST()
[all …]
/external/libcxx/src/
Dstring.cpp355 as_string(P sprintf_like, S s, const typename S::value_type* fmt, V a) in as_string() function
438 return as_string(snprintf, initial_string<string, int>()(), "%d", val); in to_string()
443 return as_string(snprintf, initial_string<string, unsigned>()(), "%u", val); in to_string()
448 return as_string(snprintf, initial_string<string, long>()(), "%ld", val); in to_string()
453 return as_string(snprintf, initial_string<string, unsigned long>()(), "%lu", val); in to_string()
458 return as_string(snprintf, initial_string<string, long long>()(), "%lld", val); in to_string()
463 return as_string(snprintf, initial_string<string, unsigned long long>()(), "%llu", val); in to_string()
468 return as_string(snprintf, initial_string<string, float>()(), "%f", val); in to_string()
473 return as_string(snprintf, initial_string<string, double>()(), "%f", val); in to_string()
478 return as_string(snprintf, initial_string<string, long double>()(), "%Lf", val); in to_string()
[all …]
/external/libabigail/src/
Dabg-suppression.cc1582 ? drop_artifact->get_value()->as_string() in read_type_suppression()
1587 string label_str = label ? label->get_value()->as_string() : ""; in read_type_suppression()
1592 file_name_regex_prop ? file_name_regex_prop->get_value()->as_string() : ""; in read_type_suppression()
1598 ? file_name_not_regex_prop->get_value()->as_string() in read_type_suppression()
1604 soname_regex_prop ? soname_regex_prop->get_value()->as_string() : ""; in read_type_suppression()
1610 ? soname_not_regex_prop->get_value()->as_string() in read_type_suppression()
1616 ? name_regex_prop->get_value()->as_string() in read_type_suppression()
1622 ? name_not_regex_prop->get_value()->as_string() in read_type_suppression()
1628 ? name_prop->get_value()->as_string() in read_type_suppression()
1637 srcloc_not_in.insert(p->get_value()->as_string()); in read_type_suppression()
[all …]
Dabg-ini.cc278 {return as_string();} in operator const string&()
325 string_property_value::as_string() const in as_string() function in abigail::ini::string_property_value
333 {return as_string();} in operator string()
413 list_property_value::as_string() const in as_string() function in abigail::ini::list_property_value
499 tuple_property_value::as_string() const in as_string() function in abigail::ini::tuple_property_value
511 priv_->string_rep_ += (*i)->as_string(); in as_string()
606 return priv_->value_->as_string().empty(); in has_empty_value()
1818 result = simple_prop->get_value()->as_string(); in write_property_value()
1821 result = list_prop->get_value()->as_string(); in write_property_value()
1823 result = tuple_prop->get_value()->as_string(); in write_property_value()
/external/tensorflow/tensorflow/core/api_def/python_api/
Dapi_def_AsString.pbtxt4 name: "dtypes.as_string"
8 name: "strings.as_string"
11 name: "as_string"
/external/mesa3d/src/gallium/frontends/clover/api/
Dplatform.cpp61 buf.as_string() = "FULL_PROFILE"; in GetPlatformInfo()
68 buf.as_string() = "OpenCL " + version_string + " Mesa " PACKAGE_VERSION MESA_GIT_SHA1; in GetPlatformInfo()
72 buf.as_string() = "Clover"; in GetPlatformInfo()
76 buf.as_string() = "Mesa"; in GetPlatformInfo()
80 buf.as_string() = platform.supported_extensions(); in GetPlatformInfo()
84 buf.as_string() = "MESA"; in GetPlatformInfo()
Ddevice.cpp304 buf.as_string() = ""; in clGetDeviceInfo()
308 buf.as_string() = dev.device_name(); in clGetDeviceInfo()
312 buf.as_string() = dev.vendor_name(); in clGetDeviceInfo()
316 buf.as_string() = PACKAGE_VERSION; in clGetDeviceInfo()
320 buf.as_string() = "FULL_PROFILE"; in clGetDeviceInfo()
324 buf.as_string() = "OpenCL " + dev.device_version() + " Mesa " PACKAGE_VERSION MESA_GIT_SHA1; in clGetDeviceInfo()
328 buf.as_string() = dev.supported_extensions(); in clGetDeviceInfo()
368 buf.as_string() = "OpenCL C " + dev.device_clc_version() + " "; in clGetDeviceInfo()
/external/python/cpython3/Lib/test/test_email/
Dtest_pickleable.py66 self.assertEqual(msg2.as_string(), msg.as_string())
72 self.assertEqual(msg2.as_string(), msg.as_string())
/external/webrtc/rtc_base/
Devent_tracer.cc117 size_t str_length = strlen(arg.value.as_string) + 1; in AddTraceEvent()
119 memcpy(str_copy, arg.value.as_string, str_length); in AddTraceEvent()
120 arg.value.as_string = str_copy; in AddTraceEvent()
160 delete[] arg.value.as_string; in Log()
161 arg.value.as_string = nullptr; in Log()
240 const char* as_string; member
267 output.reserve(strlen(arg.value.as_string) * 2 + 2); in TraceArgValueAsString()
269 const char* c = arg.value.as_string; in TraceArgValueAsString()
/external/tensorflow/tensorflow/core/kernels/fuzzing/
Dparse_tensor_op_fuzz.cc46 string as_string = string(reinterpret_cast<const char*>(data), size); in FuzzImpl() local
48 if (!ParseProtoUnlimited(&proto, as_string)) { in FuzzImpl()
66 input_tensor.scalar<tstring>()() = as_string; in FuzzImpl()
/external/llvm-project/libcxx/src/
Dstring.cpp361 as_string(P sprintf_like, S s, const typename S::value_type* fmt, V a) in as_string() function
455 string to_string (float val) { return as_string(snprintf, initial_string< string>()(),… in to_string()
456 string to_string (double val) { return as_string(snprintf, initial_string< string>()(),… in to_string()
457 string to_string (long double val) { return as_string(snprintf, initial_string< string>()(),… in to_string()
459 wstring to_wstring(float val) { return as_string(get_swprintf(), initial_string<wstring>()(),… in to_wstring()
460 wstring to_wstring(double val) { return as_string(get_swprintf(), initial_string<wstring>()(),… in to_wstring()
461 wstring to_wstring(long double val) { return as_string(get_swprintf(), initial_string<wstring>()(),… in to_wstring()
/external/libchrome/mojo/core/
Dinvitation_dispatcher.cc36 auto result = attached_ports_.emplace(name.as_string(), remote_peer_port); in AttachMessagePipe()
50 auto it = attached_ports_.find(name.as_string()); in ExtractMessagePipe()
/external/libabigail/include/
Dabg-ini.h92 as_string() const = 0;
119 as_string() const;
165 as_string() const;
200 as_string() const;
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_AsString.pbtxt48 >>> tf.strings.as_string([3, 2])
50 >>> tf.strings.as_string([3.1415926, 2.71828], precision=2).numpy()
/external/perfetto/include/perfetto/protozero/
Dfield.h127 ConstChars as_string() const { in as_string() function
133 std::string as_std_string() const { return as_string().ToStdString(); } in as_std_string()
174 void get(ConstChars* val) const { *val = as_string(); } in get()
/external/libchrome/base/trace_event/
Dtrace_config_category_filter.cc44 excluded_categories_.push_back(category.substr(1).as_string()); in InitializeFromString()
46 disabled_categories_.push_back(category.as_string()); in InitializeFromString()
48 included_categories_.push_back(category.as_string()); in InitializeFromString()
/external/skia/tools/trace/
DChromeTracingTracer.cpp98 size += strlen(value.as_string) + 1; in addTraceEvent()
130 while (*value.as_string) { in addTraceEvent()
131 *stringTable++ = *value.as_string++; in addTraceEvent()
164 case TRACE_VALUE_TYPE_STRING: writer->appendString(value.as_string); break; in trace_value_to_json()
/external/skqp/tools/trace/
DSkChromeTracingTracer.cpp104 size += strlen(value.as_string) + 1; in addTraceEvent()
136 while (*value.as_string) { in addTraceEvent()
137 *stringTable++ = *value.as_string++; in addTraceEvent()
179 writer->appendString(value.as_string); in trace_value_to_json()
/external/python/cpython2/Lib/email/test/
Dtest_email.py194 msg.as_string()
299 eq(text, msg.as_string())
567 self.assertRaises(Errors.HeaderParseError, msg.as_string)
572 self.assertRaises(Errors.HeaderParseError, msg.as_string)
793 eq(msg.as_string(), """\
803 eq(msg.as_string(), """\
813 eq(msg.as_string(0), '''\
855 self.assertEqual(msg.as_string(), """\
871 self.ndiffAssertEqual(msg.as_string(), """\
887 eq(msg.as_string(), """\
[all …]
Dtest_email_renamed.py258 self.ndiffAssertEqual(text, msg.as_string())
724 eq(msg.as_string(), """\
734 eq(msg.as_string(), """\
744 eq(msg.as_string(0), '''\
786 self.ndiffAssertEqual(msg.as_string(), """\
802 self.ndiffAssertEqual(msg.as_string(), """\
818 eq(msg.as_string(), """\
832 eq(msg.as_string(), '''\
846 self.ndiffAssertEqual(msg.as_string(), """\
1132 self.ndiffAssertEqual(text, msg.as_string())
[all …]
/external/grpc-grpc/test/cpp/qps/
Djson_run_localhost.cc41 std::string as_string(const T& val) { in as_string() function
89 as_string(port)}; in main()
/external/libchrome/base/metrics/
Dfield_trial.cc287 (*params)[key.as_string()] = value.as_string(); in GetParams()
749 group.trial_name = entry.trial_name.as_string(); in GetActiveFieldTrialGroupsFromString()
750 group.group_name = entry.group_name.as_string(); in GetActiveFieldTrialGroupsFromString()
780 group.trial_name = trial_name.as_string(); in GetInitiallyActiveFieldTrials()
781 group.group_name = group_name.as_string(); in GetInitiallyActiveFieldTrials()
800 const std::string trial_name = entry.trial_name.as_string(); in CreateTrialsFromString()
801 const std::string group_name = entry.group_name.as_string(); in CreateTrialsFromString()
1156 FieldTrial* trial = global_->PreLockedFind(trial_name.as_string()); in ClearParamsFromSharedMemoryForTesting()
1353 CreateFieldTrial(trial_name.as_string(), group_name.as_string()); in CreateTrialsFromSharedMemory()

1234567