Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/platform/
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()
Dnumbers.cc231 bool safe_strto64(StringPiece str, int64* value) { in safe_strto64() function
/external/protobuf/src/google/protobuf/stubs/
Dstrutil.h412 PROTOBUF_EXPORT bool safe_strto64(const string& str, int64* value);
414 inline bool safe_strto64(const char* str, int64* value) { in safe_strto64() function
415 return safe_strto64(string(str), value); in safe_strto64()
417 inline bool safe_strto64(StringPiece str, int64* value) { in safe_strto64() function
418 return safe_strto64(str.ToString(), value); in safe_strto64()
Dstrutil.cc1372 bool safe_strto64(const string& str, int64* value) { in safe_strto64() function
/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/kernels/hexagon/
Dhexagon_rewriter_transform.cc61 CHECK(strings::safe_strto64(dim, &tmp)); in RewriteQuantizedStrippedModelForHexagon()
/external/tensorflow/tensorflow/core/framework/
Dtensor_slice.cc59 if (sl.size() != 2 || !strings::safe_strto64(sl[0], &s) || in Parse()
60 !strings::safe_strto64(sl[1], &l)) { in Parse()
Dshape_inference_testutil.cc202 if (!strings::safe_strto64(expected_dim, &value)) { in InferShapes()
250 !strings::safe_strto64(match, &dim_size)) { in MakeShapeFromString()
Dop_def_builder.cc98 if (!strings::safe_strto64(match, &value)) { in ConsumeAttrNumber()
/external/dynamic_depth/internal/strings/
Dnumbers.h50 inline bool safe_strto64(const string& text, int64* value) { in safe_strto64() function
/external/tensorflow/tensorflow/core/platform/cloud/
Dgcs_file_system.cc243 strings::safe_strto64(result_value.asCString(), result)) { in GetInt64Value()
838 if (GetEnvVar(kResolveCacheSecs, strings::safe_strto64, in GcsFileSystem()
898 if (GetEnvVar(kThrottleRate, strings::safe_strto64, &token_value)) { in GcsFileSystem()
903 if (GetEnvVar(kThrottleBucket, strings::safe_strto64, &token_value)) { in GcsFileSystem()
907 if (GetEnvVar(kTokensPerRequest, strings::safe_strto64, &token_value)) { in GcsFileSystem()
911 if (GetEnvVar(kInitialTokens, strings::safe_strto64, &token_value)) { in GcsFileSystem()
1206 if (strings::safe_strto64(range_str, &tmp)) { in RequestUploadSessionStatus()
/external/tensorflow/tensorflow/core/kernels/
Dremote_fused_graph_rewriter_transform.cc124 CHECK(strings::safe_strto64(dim, &tmp)); in PlaceShapeType()
Ddecode_csv_op.cc129 OP_REQUIRES(ctx, strings::safe_strto64(fields[f], &value), in Compute()
Dlookup_util.cc222 if (!strings::safe_strto64(token.c_str(), &value)) { in SetValue()
Dconv_ops.cc626 if (strings::safe_strto64(workspace_limit_in_mb_str, in GetDnnWorkspaceLimit()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_channel.cc87 if (strings::safe_strto64(name_value[1], &value)) { in CreateDefaultChannelArguments()
/external/protobuf/src/google/protobuf/util/internal/
Ddatapiece.cc145 if (type_ == TYPE_STRING) return StringToNumber<int64>(safe_strto64); in ToInt64()
Djson_stream_parser.cc584 if (safe_strto64(number, &result->int_val)) { in ParseNumberHelper()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dtransform_utils.cc605 if (strings::safe_strto64(dim, &tmp)) { in TensorShapeFromString()
668 if (!strings::safe_strto64(StringPiece(string_value), result)) { in GetOneInt64Parameter()
/external/tensorflow/tensorflow/core/debug/
Ddebug_graph_utils.cc436 if (!::tensorflow::strings::safe_strto64(attr_value, &int_value)) { in SetDebugNodeAttributes()
/external/tensorflow/tensorflow/core/platform/s3/
Ds3_file_system.cc142 strings::safe_strto64(connect_timeout_str, &connect_timeout); in GetDefaultClientConfig()
149 strings::safe_strto64(request_timeout_str, &request_timeout); in GetDefaultClientConfig()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dcsv_dataset_op.cc742 if (!strings::safe_strto64(field, &value)) { in FieldToOutput()
/external/tensorflow/tensorflow/core/summary/
Dsummary_db_writer.cc269 if (!strings::safe_strto64(name.substr(i + 1, name.size() - i - 1), in SaveNodeInputs()