Home
last modified time | relevance | path

Searched refs:safe_strto64 (Results 1 – 25 of 31) sorted by relevance

12

/external/tensorflow/tensorflow/core/lib/strings/
Dnumbers_test.cc187 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 …]
Dnumbers.h107 bool safe_strto64(StringPiece str, int64* value);
135 return safe_strto64(s, value); in ProtoParseNumeric()
Dstr_util.cc445 return SplitAndParseAsInts<int64>(text, delim, strings::safe_strto64, result); in SplitAndParseAsInts()
Dnumbers.cc223 bool safe_strto64(StringPiece str, int64* value) { in safe_strto64() function
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_utils.cc137 !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 …]
Dtfprof_tensor.h66 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/
Dstrutil.h409 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/
Dverbs_util.cc45 strings::safe_strto64(parts[5], &step_id); in GetKeyAndStepId()
/external/tensorflow/tensorflow/core/util/rpc/
Drpc_factory.cc40 return strings::safe_strto64(env_value, value); in GetEnvVar()
/external/tensorflow/tensorflow/core/util/
Denv_var.cc55 if (strings::safe_strto64(tf_env_var_val, value)) { in ReadInt64FromEnvVar()
Dsaved_tensor_slice_util.cc114 if (!strings::safe_strto64(s, &dim)) { in ParseShapeAndSlice()
/external/tensorflow/tensorflow/core/framework/
Dshape_inference_testutil.cc204 if (!strings::safe_strto64(expected_dim, &value)) { in InferShapes()
252 !strings::safe_strto64(match, &dim_size)) { in MakeShapeFromString()
Dtensor_slice.cc59 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/
Dnumbers.h50 inline bool safe_strto64(const string& text, int64* value) { in safe_strto64() function
/external/tensorflow/tensorflow/contrib/kinesis/kernels/
Dkinesis_dataset_ops.cc92 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/
Dkafka_dataset_ops.cc236 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/
Dbigquery_table_accessor.cc278 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/
Dgcs_file_system.cc282 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/
Ddecode_libsvm_op.cc72 ctx, strings::safe_strto64(piece.substr(0, p), &feature_index), in Compute()
/external/tensorflow/tensorflow/core/platform/s3/
Ds3_file_system.cc114 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/
Ddatapiece.cc140 if (type_ == TYPE_STRING) return StringToNumber<int64>(safe_strto64); in ToInt64()
Djson_stream_parser.cc556 if (!safe_strto64(number, &result->int_val)) { in ParseNumberHelper()
/external/tensorflow/tensorflow/core/kernels/
Ddecode_csv_op.cc129 OP_REQUIRES(ctx, strings::safe_strto64(fields[f], &value), in Compute()
Dlookup_util.cc215 if (!strings::safe_strto64(token.c_str(), &value)) { in SetValue()
/external/tensorflow/tensorflow/core/debug/
Ddebug_graph_utils.cc403 if (!::tensorflow::strings::safe_strto64(attr_value, &int_value)) { in SetDebugNodeAttributes()

12