Home
last modified time | relevance | path

Searched refs:safe_strtof (Results 1 – 16 of 16) sorted by relevance

/external/tensorflow/tensorflow/core/lib/strings/
Dnumbers_test.cc258 TEST(safe_strtof, Float) { in TEST() argument
261 EXPECT_TRUE(safe_strtof("0.123456", &result)); in TEST()
263 EXPECT_FALSE(safe_strtof("0.12345abc", &result)); in TEST()
266 EXPECT_TRUE(safe_strtof("1e39", &result)); in TEST()
269 EXPECT_TRUE(safe_strtof("-1e39", &result)); in TEST()
272 EXPECT_TRUE(safe_strtof("1e-50", &result)); in TEST()
275 EXPECT_TRUE(safe_strtof("0xF", &result)); in TEST()
278 EXPECT_TRUE(safe_strtof("-0x2A", &result)); in TEST()
281 EXPECT_TRUE(safe_strtof(" -0x2", &result)); in TEST()
284 EXPECT_TRUE(safe_strtof("8 \t", &result)); in TEST()
[all …]
Dnumbers.h118 bool safe_strtof(StringPiece str, float* value);
143 return safe_strtof(s, value); in ProtoParseNumeric()
Dnumbers.cc335 bool safe_strtof(StringPiece str, float* value) { in safe_strtof() function
376 if (!safe_strtof(buffer, &parsed_value) || parsed_value != value) { in FloatToBuffer()
Dstr_util.cc452 return strings::safe_strtof(str, value); in SplitAndParseAsFloats()
/external/protobuf/src/google/protobuf/stubs/
Dstrutil.h424 LIBPROTOBUF_EXPORT bool safe_strtof(const char* str, float* value);
426 inline bool safe_strtof(const string& str, float* value) { in safe_strtof() function
427 return safe_strtof(str.c_str(), value); in safe_strtof()
432 inline bool safe_strtof(StringPiece str, float* value) { in safe_strtof() function
433 return safe_strtof(str.ToString(), value); in safe_strtof()
Dstrutil.cc1322 bool safe_strtof(const char* str, float* value) { in safe_strtof() function
1387 if (!safe_strtof(buffer, &parsed_value) || parsed_value != value) { in FloatToBuffer()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dfreeze_requantization_ranges.cc78 if (!strings::safe_strtof(min_number_string.c_str(), &min)) { in ExtractMinMaxRecords()
88 if (!strings::safe_strtof(max_number_string.c_str(), &max)) { in ExtractMinMaxRecords()
Dtransform_utils.cc677 if (!strings::safe_strtof(string_value.c_str(), result)) { in GetOneFloatParameter()
/external/dynamic_depth/internal/strings/
Dnumbers.h65 bool safe_strtof(const string& str, float* value);
Dnumbers.cc462 bool safe_strtof(const string& piece, float* value) { in safe_strtof() function
535 if (!safe_strtof(buffer, &parsed_value) || parsed_value != value) { in FloatToBuffer()
/external/tensorflow/tensorflow/examples/speech_commands/
Daccuracy_utils.cc42 if (!tensorflow::strings::safe_strtof(pieces[1].c_str(), &timestamp)) { in ReadGroundTruthFile()
/external/tensorflow/tensorflow/core/kernels/
Ddecode_csv_op.cc148 OP_REQUIRES(ctx, strings::safe_strtof(fields[f], &value), in Compute()
Drange_sampler.cc297 if (!strings::safe_strtof(cols.at(cols.size() - 1), &w)) { in LoadFromFile()
Dlookup_util.cc224 if (!strings::safe_strtof(token.c_str(), &value)) { in SetValue()
/external/tensorflow/tensorflow/core/debug/
Ddebug_graph_utils.cc394 if (!::tensorflow::strings::safe_strtof(attr_value.c_str(), in SetDebugNodeAttributes()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dcsv_dataset_op.cc695 if (!strings::safe_strtof(field, &value)) { in FieldToOutput()