Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/platform/
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.cc343 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/
Dstrutil.h427 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()
Dstrutil.cc1341 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/
Dfreeze_requantization_ranges.cc77 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()
Dtransform_utils.cc685 if (!strings::safe_strtof(string_value.c_str(), result)) { in GetOneFloatParameter()
/external/tensorflow/tensorflow/core/util/
Denv_var.cc70 if (strings::safe_strtof(tf_env_var_val, value)) { in ReadFloatFromEnvVar()
/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()
Dspectrogram_test_utils.cc169 CHECK(strings::safe_strtof(token, &tmp)); in ReadCSVFileToArrayOrDie()
Drange_sampler.cc300 if (!strings::safe_strtof(cols.at(cols.size() - 1), &w)) { in LoadFromFile()
Dlookup_util.cc231 if (!strings::safe_strtof(token.c_str(), &value)) { in SetValue()
/external/tensorflow/tensorflow/examples/multibox_detector/
Dmain.cc68 CHECK(tensorflow::strings::safe_strtof(string_token, &number)); in ReadLocationsFile()
/external/tensorflow/tensorflow/core/debug/
Ddebug_graph_utils.cc427 if (!::tensorflow::strings::safe_strtof(attr_value.c_str(), in SetDebugNodeAttributes()
/external/tensorflow/tensorflow/tools/benchmark/
Dbenchmark_model.cc559 CHECK(strings::safe_strtof(str_val, &val)) in Main()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dcsv_dataset_op.cc757 if (!strings::safe_strtof(field, &value)) { in FieldToOutput()