Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/platform/
Dnumbers_test.cc323 TEST(safe_strtod, Double) { in TEST() argument
326 EXPECT_TRUE(safe_strtod("0.1234567890123", &result)); in TEST()
328 EXPECT_FALSE(safe_strtod("0.1234567890123abc", &result)); in TEST()
334 EXPECT_FALSE(safe_strtod(test_str, &result)); in TEST()
337 EXPECT_TRUE(safe_strtod("1e310", &result)); in TEST()
340 EXPECT_TRUE(safe_strtod("-1e310", &result)); in TEST()
343 EXPECT_TRUE(safe_strtod("1e-325", &result)); in TEST()
346 EXPECT_TRUE(safe_strtod(" -0x1c", &result)); in TEST()
349 EXPECT_TRUE(safe_strtod("50 \t", &result)); in TEST()
352 EXPECT_TRUE(safe_strtod("\t82.0\t ", &result)); in TEST()
[all …]
Dnumbers.h124 bool safe_strtod(StringPiece str, double* value);
147 return safe_strtod(s, value); in ProtoParseNumeric()
Dnumbers.cc356 bool safe_strtod(StringPiece str, double* value) { in safe_strtod() function
/external/tensorflow/tensorflow/core/framework/
Drun_handler_util.cc29 return (val && strings::safe_strtod(val, &num)) ? num : default_value; in ParamFromEnvWithDefault()
43 if (strings::safe_strtod(split, &num)) { in ParamFromEnvWithDefault()
/external/protobuf/src/google/protobuf/stubs/
Dstrutil.h428 PROTOBUF_EXPORT bool safe_strtod(const char* str, double* value);
432 inline bool safe_strtod(const string& str, double* value) { in safe_strtod() function
433 return safe_strtod(str.c_str(), value); in safe_strtod()
438 inline bool safe_strtod(StringPiece str, double* value) { in safe_strtod() function
439 return safe_strtod(str.ToString(), value); in safe_strtod()
Dstrutil.cc1352 bool safe_strtod(const char* str, double* value) { in safe_strtod() function
/external/dynamic_depth/internal/strings/
Dnumbers.h67 bool safe_strtod(const string& str, double* value);
Dnumbers.cc491 bool safe_strtod(const string& piece, double* value) { in safe_strtod() function
/external/tensorflow/tensorflow/core/kernels/
Dspectrogram_test_utils.cc144 strings::safe_strtod(*j, &imaginary_part); in ReadCSVFileToComplexVectorOrDie()
146 strings::safe_strtod(*j, &real_part); in ReadCSVFileToComplexVectorOrDie()
Ddecode_csv_op.cc168 OP_REQUIRES(ctx, strings::safe_strtod(fields[f], &value), in Compute()
Dlookup_util.cc240 if (!strings::safe_strtod(token.c_str(), &value)) { in SetValue()
/external/dynamic_depth/internal/xmpmeta/xml/
Ddeserializer_impl.cc309 if (!dynamic_depth::strings::safe_strtod(GetLiNodeContent(li_node), in ParseDoubleArray()
/external/protobuf/src/google/protobuf/util/internal/
Ddatapiece.cc177 StatusOr<double> value = StringToNumber<double>(safe_strtod); in ToDouble()
Dutility.cc393 if (!safe_strtod(str, &double_value)) { in SafeStrToFloat()
Djson_stream_parser.cc506 if (!safe_strtod(number, &result->double_val)) { in ParseDoubleHelper()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dcsv_dataset_op.cc772 if (!strings::safe_strtod(field, &value)) { in FieldToOutput()