Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/core/lib/strings/
Dnumbers_test.cc120 TEST(safe_strto32, Int32s) { in TEST() argument
123 EXPECT_EQ(true, safe_strto32("1", &result)); in TEST()
125 EXPECT_EQ(true, safe_strto32("123", &result)); in TEST()
127 EXPECT_EQ(true, safe_strto32(" -123 ", &result)); in TEST()
129 EXPECT_EQ(true, safe_strto32("2147483647", &result)); in TEST()
131 EXPECT_EQ(true, safe_strto32("-2147483648", &result)); in TEST()
135 EXPECT_EQ(false, safe_strto32(" 132as ", &result)); in TEST()
136 EXPECT_EQ(false, safe_strto32(" 132.2 ", &result)); in TEST()
137 EXPECT_EQ(false, safe_strto32(" -", &result)); in TEST()
138 EXPECT_EQ(false, safe_strto32("", &result)); in TEST()
[all …]
Dnumbers.h97 bool safe_strto32(StringPiece str, int32* value);
127 return safe_strto32(s, value); in ProtoParseNumeric()
/external/tensorflow/tensorflow/stream_executor/lib/
Dnumbers.cc23 bool safe_strto32(const char* str, int32* value) { in safe_strto32() function
35 bool safe_strto32(const string& str, int32* value) { in safe_strto32() function
36 return port::safe_strto32(str.c_str(), value); in safe_strto32()
Dnumbers.h27 bool safe_strto32(const string& str, int32* value);
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/
Ddata_spec.h29 using tensorflow::strings::safe_strto32;
45 safe_strto32(tokens[3], &original_type_); in ParseFromString()
46 safe_strto32(tokens[5], &size_); in ParseFromString()
82 safe_strto32(first_part[1], &dense_features_size_); in ParseFromString()
Dmodel_ops.cc416 safe_strto32(test.feature_id().id().value(), &feat); in Compute()
422 safe_strto32(test.feature_id().id().value(), &feat); in Compute()
427 safe_strto32(featid.id().value(), &feat); in Compute()
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/v4/
Ddecision_node_evaluator.cc54 CHECK(safe_strto32(test.feature_id().id().value(), &feature_num_)) in InequalityDecisionNodeEvaluator()
83 CHECK(safe_strto32(test.oblique().features(i).id().value(), &val)) in ObliqueInequalityDecisionNodeEvaluator()
110 CHECK(safe_strto32(test.feature_id().id().value(), &feature_num_)) in MatchingValuesDecisionNodeEvaluator()
Dinput_data.cc87 safe_strto32(feature_id.id().value(), &feature); in GetExampleValue()
Dcandidate_graph_runner.cc65 safe_strto32(id.id().value(), &feat(i++)); in CandidateGraphRunner()
/external/tensorflow/tensorflow/stream_executor/rocm/
Drocm_diagnostics.cc70 if (!port::safe_strto32(pieces[0], &major)) { in StringToDriverVersion()
77 if (!port::safe_strto32(pieces[1], &minor)) { in StringToDriverVersion()
84 if (pieces.size() == 3 && !port::safe_strto32(pieces[2], &patch)) { in StringToDriverVersion()
/external/tensorflow/tensorflow/contrib/ignite/kernels/dataset/
Dignite_dataset_ops.cc112 OP_REQUIRES(ctx, strings::safe_strto32(env_port, &port), in MakeDataset()
127 OP_REQUIRES(ctx, strings::safe_strto32(env_part, &part), in MakeDataset()
136 OP_REQUIRES(ctx, strings::safe_strto32(env_page_size, &page_size), in MakeDataset()
/external/tensorflow/tensorflow/core/common_runtime/
Dprocess_util.cc68 return (val && strings::safe_strto32(val, &num)) ? num : 0; in NumInterOpThreadsFromEnvironment()
74 return (val && strings::safe_strto32(val, &num)) ? num : 0; in NumIntraOpThreadsFromEnvironment()
Dstep_stats_collector.cc227 CHECK(strings::safe_strto32(ordered_capture, &gpu_id)); in ExtractGpuWithStreamAll()
256 CHECK(strings::safe_strto32(ordered_capture, &gpu_id)); in ExtractGpuWithoutStream()
/external/protobuf/src/google/protobuf/stubs/
Dstrutil.h394 LIBPROTOBUF_EXPORT bool safe_strto32(const string& str, int32* value);
396 inline bool safe_strto32(const char* str, int32* value) { in safe_strto32() function
397 return safe_strto32(string(str), value); in safe_strto32()
399 inline bool safe_strto32(StringPiece str, int32* value) { in safe_strto32() function
400 return safe_strto32(str.ToString(), value); in safe_strto32()
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_diagnostics.cc80 if (!port::safe_strto32(pieces[0], &major)) { in StringToDriverVersion()
87 if (!port::safe_strto32(pieces[1], &minor)) { in StringToDriverVersion()
94 if (pieces.size() == 3 && !port::safe_strto32(pieces[2], &patch)) { in StringToDriverVersion()
/external/tensorflow/tensorflow/core/kernels/
Dgpu_utils.h108 strings::safe_strto32(threshold_str, &min_score_threshold_); in AutoTuneMap()
113 strings::safe_strto32(min_warmup_iteration_str, &min_warmup_iterations); in AutoTuneMap()
Dremote_fused_graph_execute_utils.cc1199 CHECK(strings::safe_strto32(attr.at(0), &node_type_int)) << attr.at(0); in FuseRemoteGraphByPlacedArguments()
1210 CHECK(strings::safe_strto32(attr.at(1), &port)); in FuseRemoteGraphByPlacedArguments()
1211 CHECK(strings::safe_strto32(attr.at(2), &index)); in FuseRemoteGraphByPlacedArguments()
1227 CHECK(strings::safe_strto32(attr.at(1), &port)); in FuseRemoteGraphByPlacedArguments()
1228 CHECK(strings::safe_strto32(attr.at(2), &index)); in FuseRemoteGraphByPlacedArguments()
1239 CHECK(strings::safe_strto32(attr.at(1), &port)); in FuseRemoteGraphByPlacedArguments()
1240 CHECK(strings::safe_strto32(attr.at(2), &index)); in FuseRemoteGraphByPlacedArguments()
1246 CHECK(strings::safe_strto32(attr.at(1), &port)); in FuseRemoteGraphByPlacedArguments()
1247 CHECK(strings::safe_strto32(attr.at(2), &index)); in FuseRemoteGraphByPlacedArguments()
/external/tensorflow/tensorflow/core/grappler/
Dutils.h144 if (!strings::safe_strto32(remaining, &position)) { in NodePositionIfSameNode()
198 if (!strings::safe_strto32(remaining, position)) { in ParseNodeNameAsStringPiece()
/external/dynamic_depth/internal/strings/
Dnumbers.h46 inline bool safe_strto32(const string& text, int32* value) { in safe_strto32() function
/external/tensorflow/tensorflow/tools/graph_transforms/
Dinsert_logging.cc83 if (!strings::safe_strto32(output_index_string, &output_index)) { in InsertLogging()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_server_lib.cc135 if (!strings::safe_strto32(iter->second.substr(colon_index + 1), in Init()
329 if (!strings::safe_strto32(host_port.substr(colon_index + 1), in WorkerCacheFactory()
/external/tensorflow/tensorflow/contrib/verbs/
Dverbs_server_lib.cc66 if (!strings::safe_strto32(str_util::Split(host_port, ':')[1], in ChannelCacheFactory()
Drdma_mgr.cc238 if (strings::safe_strto32(content, &value)) { in TryToReadNumaNode()
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dfunction_utils.cc64 CHECK(strings::safe_strto32(capture, &position)); in FunctionDefTensorDesc()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_device.cc786 if (!strings::safe_strto32(platform_gpu_id_str, &platform_gpu_id)) { in ParseVisibleDeviceList()
1389 if (strings::safe_strto32(tf_min_gpu_core_count, &min_gpu_core_count)) { in GetMinGPUMultiprocessorCount()
1413 CHECK(strings::safe_strto32(major_str, &major_part)) in CudaVersion()
1416 CHECK(strings::safe_strto32(minor_str, &minor_part)) in CudaVersion()

12