/external/tensorflow/tensorflow/core/platform/ |
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 | 343 bool safe_strtof(StringPiece str, float* value) { in safe_strtof() function 392 if (!safe_strtof(buffer, &parsed_value) || parsed_value != value) { in FloatToBuffer()
|
/external/protobuf/src/google/protobuf/stubs/ |
D | strutil.h | 427 PROTOBUF_EXPORT bool safe_strtof(const char* str, float* value); 429 inline bool safe_strtof(const string& str, float* value) { in safe_strtof() function 430 return safe_strtof(str.c_str(), value); in safe_strtof() 435 inline bool safe_strtof(StringPiece str, float* value) { in safe_strtof() function 436 return safe_strtof(str.ToString(), value); in safe_strtof()
|
D | strutil.cc | 1341 bool safe_strtof(const char* str, float* value) { in safe_strtof() function 1406 if (!safe_strtof(buffer, &parsed_value) || parsed_value != value) { in FloatToBuffer()
|
/external/tensorflow/tensorflow/tools/graph_transforms/ |
D | freeze_requantization_ranges.cc | 77 if (!strings::safe_strtof(min_number_string.c_str(), &min)) { in ExtractMinMaxRecords() 87 if (!strings::safe_strtof(max_number_string.c_str(), &max)) { in ExtractMinMaxRecords()
|
D | transform_utils.cc | 685 if (!strings::safe_strtof(string_value.c_str(), result)) { in GetOneFloatParameter()
|
/external/tensorflow/tensorflow/core/util/ |
D | env_var.cc | 70 if (strings::safe_strtof(tf_env_var_val, value)) { in ReadFloatFromEnvVar()
|
/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 | spectrogram_test_utils.cc | 169 CHECK(strings::safe_strtof(token, &tmp)); in ReadCSVFileToArrayOrDie()
|
D | range_sampler.cc | 300 if (!strings::safe_strtof(cols.at(cols.size() - 1), &w)) { in LoadFromFile()
|
D | lookup_util.cc | 231 if (!strings::safe_strtof(token.c_str(), &value)) { in SetValue()
|
/external/tensorflow/tensorflow/examples/multibox_detector/ |
D | main.cc | 68 CHECK(tensorflow::strings::safe_strtof(string_token, &number)); in ReadLocationsFile()
|
/external/tensorflow/tensorflow/core/debug/ |
D | debug_graph_utils.cc | 427 if (!::tensorflow::strings::safe_strtof(attr_value.c_str(), in SetDebugNodeAttributes()
|
/external/tensorflow/tensorflow/tools/benchmark/ |
D | benchmark_model.cc | 559 CHECK(strings::safe_strtof(str_val, &val)) in Main()
|
/external/tensorflow/tensorflow/core/kernels/data/experimental/ |
D | csv_dataset_op.cc | 757 if (!strings::safe_strtof(field, &value)) { in FieldToOutput()
|