/external/tensorflow/tensorflow/core/lib/strings/ |
D | numbers_test.cc | 187 TEST(safe_strto64, Int64s) { in TEST() argument 190 EXPECT_EQ(true, safe_strto64("1", &result)); in TEST() 192 EXPECT_EQ(true, safe_strto64("123", &result)); in TEST() 194 EXPECT_EQ(true, safe_strto64(" -123 ", &result)); in TEST() 196 EXPECT_EQ(true, safe_strto64("9223372036854775807", &result)); in TEST() 198 EXPECT_EQ(true, safe_strto64("-9223372036854775808", &result)); in TEST() 204 EXPECT_EQ(false, safe_strto64(" 132as ", &result)); in TEST() 205 EXPECT_EQ(false, safe_strto64(" 132.2 ", &result)); in TEST() 206 EXPECT_EQ(false, safe_strto64(" -", &result)); in TEST() 207 EXPECT_EQ(false, safe_strto64("", &result)); in TEST() [all …]
|
D | numbers.h | 107 bool safe_strto64(StringPiece str, int64* value); 135 return safe_strto64(s, value); in ProtoParseNumeric()
|
D | str_util.cc | 445 return SplitAndParseAsInts<int64>(text, delim, strings::safe_strto64, result); in SplitAndParseAsInts()
|
D | numbers.cc | 223 bool safe_strto64(StringPiece str, int64* value) { in safe_strto64() function
|
/external/tensorflow/tensorflow/core/profiler/internal/ |
D | tfprof_utils.cc | 137 !strings::safe_strto64(pieces[i + 1], &opts->min_bytes)) { in ParseCmdLine() 143 !strings::safe_strto64(pieces[i + 1], &opts->min_peak_bytes)) { in ParseCmdLine() 149 !strings::safe_strto64(pieces[i + 1], &opts->min_residual_bytes)) { in ParseCmdLine() 155 !strings::safe_strto64(pieces[i + 1], &opts->min_output_bytes)) { in ParseCmdLine() 161 !strings::safe_strto64(pieces[i + 1], &opts->min_micros)) { in ParseCmdLine() 167 !strings::safe_strto64(pieces[i + 1], in ParseCmdLine() 174 !strings::safe_strto64(pieces[i + 1], &opts->min_cpu_micros)) { in ParseCmdLine() 180 !strings::safe_strto64(pieces[i + 1], &opts->min_params)) { in ParseCmdLine() 186 !strings::safe_strto64(pieces[i + 1], &opts->min_float_ops)) { in ParseCmdLine() 192 !strings::safe_strto64(pieces[i + 1], &opts->min_occurrence)) { in ParseCmdLine() [all …]
|
D | tfprof_tensor.h | 66 CHECK(strings::safe_strto64(sstream.str().c_str(), &int64_val)); in AddValue() 101 CHECK(strings::safe_strto64(sstream.str().c_str(), &int64_val)); in BuildOutput() 129 CHECK(strings::safe_strto64(sstream.str().c_str(), &int64_val)); in BuildOutput()
|
/external/protobuf/src/google/protobuf/stubs/ |
D | strutil.h | 409 LIBPROTOBUF_EXPORT bool safe_strto64(const string& str, int64* value); 411 inline bool safe_strto64(const char* str, int64* value) { in safe_strto64() function 412 return safe_strto64(string(str), value); in safe_strto64() 414 inline bool safe_strto64(StringPiece str, int64* value) { in safe_strto64() function 415 return safe_strto64(str.ToString(), value); in safe_strto64()
|
/external/tensorflow/tensorflow/contrib/verbs/ |
D | verbs_util.cc | 45 strings::safe_strto64(parts[5], &step_id); in GetKeyAndStepId()
|
/external/tensorflow/tensorflow/core/util/rpc/ |
D | rpc_factory.cc | 40 return strings::safe_strto64(env_value, value); in GetEnvVar()
|
/external/tensorflow/tensorflow/core/util/ |
D | env_var.cc | 55 if (strings::safe_strto64(tf_env_var_val, value)) { in ReadInt64FromEnvVar()
|
D | saved_tensor_slice_util.cc | 114 if (!strings::safe_strto64(s, &dim)) { in ParseShapeAndSlice()
|
/external/tensorflow/tensorflow/core/framework/ |
D | shape_inference_testutil.cc | 204 if (!strings::safe_strto64(expected_dim, &value)) { in InferShapes() 252 !strings::safe_strto64(match, &dim_size)) { in MakeShapeFromString()
|
D | tensor_slice.cc | 59 if (sl.size() != 2 || !strings::safe_strto64(sl[0], &s) || in Parse() 60 !strings::safe_strto64(sl[1], &l)) { in Parse()
|
/external/dynamic_depth/internal/strings/ |
D | numbers.h | 50 inline bool safe_strto64(const string& text, int64* value) { in safe_strto64() function
|
/external/tensorflow/tensorflow/contrib/kinesis/kernels/ |
D | kinesis_dataset_ops.cc | 92 if (strings::safe_strto64(connect_timeout, &timeout)) { in InitializeDefaultClientConfig() 100 if (strings::safe_strto64(request_timeout, &timeout)) { in InitializeDefaultClientConfig()
|
/external/tensorflow/tensorflow/contrib/kafka/kernels/ |
D | kafka_dataset_ops.cc | 236 if (!strings::safe_strto64(parts[2], &offset)) { in SetupStreamsLocked() 247 if (!strings::safe_strto64(parts[3], &limit_)) { in SetupStreamsLocked()
|
/external/tensorflow/tensorflow/contrib/cloud/kernels/ |
D | bigquery_table_accessor.cc | 278 strings::safe_strto64(root["numRows"].asString().c_str(), &total_num_rows_); in ReadSchema() 333 if (!strings::safe_strto64(column_value.asString().c_str(), in AppendValueToExample()
|
/external/tensorflow/tensorflow/core/platform/cloud/ |
D | gcs_file_system.cc | 282 strings::safe_strto64(result_value.asCString(), result)) { in GetInt64Value() 722 if (GetEnvVar(kResolveCacheSecs, strings::safe_strto64, in GcsFileSystem() 782 if (GetEnvVar(kThrottleRate, strings::safe_strto64, &token_value)) { in GcsFileSystem() 787 if (GetEnvVar(kThrottleBucket, strings::safe_strto64, &token_value)) { in GcsFileSystem() 791 if (GetEnvVar(kTokensPerRequest, strings::safe_strto64, &token_value)) { in GcsFileSystem() 795 if (GetEnvVar(kInitialTokens, strings::safe_strto64, &token_value)) { in GcsFileSystem()
|
/external/tensorflow/tensorflow/contrib/libsvm/kernels/ |
D | decode_libsvm_op.cc | 72 ctx, strings::safe_strto64(piece.substr(0, p), &feature_index), in Compute()
|
/external/tensorflow/tensorflow/core/platform/s3/ |
D | s3_file_system.cc | 114 if (strings::safe_strto64(connect_timeout, &timeout)) { in GetDefaultClientConfig() 122 if (strings::safe_strto64(request_timeout, &timeout)) { in GetDefaultClientConfig()
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | datapiece.cc | 140 if (type_ == TYPE_STRING) return StringToNumber<int64>(safe_strto64); in ToInt64()
|
D | json_stream_parser.cc | 556 if (!safe_strto64(number, &result->int_val)) { in ParseNumberHelper()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | decode_csv_op.cc | 129 OP_REQUIRES(ctx, strings::safe_strto64(fields[f], &value), in Compute()
|
D | lookup_util.cc | 215 if (!strings::safe_strto64(token.c_str(), &value)) { in SetValue()
|
/external/tensorflow/tensorflow/core/debug/ |
D | debug_graph_utils.cc | 403 if (!::tensorflow::strings::safe_strto64(attr_value, &int_value)) { in SetDebugNodeAttributes()
|