Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/lib/strings/
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.cc348 bool safe_strtod(StringPiece str, double* value) { in safe_strtod() function
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_tensor.h60 CHECK(strings::safe_strtod(sstream.str().c_str(), &double_val)); in AddValue()
95 CHECK(strings::safe_strtod(sstream.str().c_str(), &double_val)); in BuildOutput()
123 CHECK(strings::safe_strtod(sstream.str().c_str(), &double_val)); in BuildOutput()
/external/protobuf/src/google/protobuf/stubs/
Dstrutil.h425 LIBPROTOBUF_EXPORT bool safe_strtod(const char* str, double* value);
429 inline bool safe_strtod(const string& str, double* value) { in safe_strtod() function
430 return safe_strtod(str.c_str(), value); in safe_strtod()
435 inline bool safe_strtod(StringPiece str, double* value) { in safe_strtod() function
436 return safe_strtod(str.ToString(), value); in safe_strtod()
Dstrutil.cc1333 bool safe_strtod(const char* str, double* value) { in safe_strtod() function
/external/tensorflow/tensorflow/core/kernels/
Dspectrogram_test_utils.cc143 strings::safe_strtod(*j, &imaginary_part); in ReadCSVFileToComplexVectorOrDie()
145 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.cc233 if (!strings::safe_strtod(token.c_str(), &value)) { in SetValue()
/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/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/
Dutility.cc340 if (!safe_strtod(str, &double_value)) { in SafeStrToFloat()
Ddatapiece.cc171 return StringToNumber<double>(safe_strtod); in ToDouble()
Djson_stream_parser.cc529 if (!safe_strtod(number, &result->double_val)) { in ParseNumberHelper()
/external/tensorflow/tensorflow/contrib/cloud/kernels/
Dbigquery_table_accessor.cc343 if (!strings::safe_strtod(column_value.asString().c_str(), in AppendValueToExample()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dcsv_dataset_op.cc710 if (!strings::safe_strtod(field, &value)) { in FieldToOutput()