/external/tensorflow/tensorflow/core/lib/strings/ |
D | numbers_test.cc | 258 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 …]
|
D | numbers.h | 118 bool safe_strtof(StringPiece str, float* value); 143 return safe_strtof(s, value); in ProtoParseNumeric()
|
D | numbers.cc | 335 bool safe_strtof(StringPiece str, float* value) { in safe_strtof() function 376 if (!safe_strtof(buffer, &parsed_value) || parsed_value != value) { in FloatToBuffer()
|
D | str_util.cc | 452 return strings::safe_strtof(str, value); in SplitAndParseAsFloats()
|
/external/protobuf/src/google/protobuf/stubs/ |
D | strutil.h | 424 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()
|
D | strutil.cc | 1322 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/ |
D | freeze_requantization_ranges.cc | 78 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()
|
D | transform_utils.cc | 677 if (!strings::safe_strtof(string_value.c_str(), result)) { in GetOneFloatParameter()
|
/external/dynamic_depth/internal/strings/ |
D | numbers.h | 65 bool safe_strtof(const string& str, float* value);
|
D | numbers.cc | 462 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/ |
D | accuracy_utils.cc | 42 if (!tensorflow::strings::safe_strtof(pieces[1].c_str(), ×tamp)) { in ReadGroundTruthFile()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | decode_csv_op.cc | 148 OP_REQUIRES(ctx, strings::safe_strtof(fields[f], &value), in Compute()
|
D | range_sampler.cc | 297 if (!strings::safe_strtof(cols.at(cols.size() - 1), &w)) { in LoadFromFile()
|
D | lookup_util.cc | 224 if (!strings::safe_strtof(token.c_str(), &value)) { in SetValue()
|
/external/tensorflow/tensorflow/core/debug/ |
D | debug_graph_utils.cc | 394 if (!::tensorflow::strings::safe_strtof(attr_value.c_str(), in SetDebugNodeAttributes()
|
/external/tensorflow/tensorflow/core/kernels/data/experimental/ |
D | csv_dataset_op.cc | 695 if (!strings::safe_strtof(field, &value)) { in FieldToOutput()
|