Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/core/lib/strings/
Dnumbers_test.cc119 TEST(safe_strto32, Int32s) { in TEST() argument
122 EXPECT_EQ(true, safe_strto32("1", &result)); in TEST()
124 EXPECT_EQ(true, safe_strto32("123", &result)); in TEST()
126 EXPECT_EQ(true, safe_strto32(" -123 ", &result)); in TEST()
128 EXPECT_EQ(true, safe_strto32("2147483647", &result)); in TEST()
130 EXPECT_EQ(true, safe_strto32("-2147483648", &result)); in TEST()
134 EXPECT_EQ(false, safe_strto32(" 132as ", &result)); in TEST()
135 EXPECT_EQ(false, safe_strto32(" 132.2 ", &result)); in TEST()
136 EXPECT_EQ(false, safe_strto32(" -", &result)); in TEST()
137 EXPECT_EQ(false, safe_strto32("", &result)); in TEST()
[all …]
Dnumbers.h98 bool safe_strto32(StringPiece str, int32* value);
126 return safe_strto32(s, value); in ProtoParseNumeric()
Dstr_util.cc437 return SplitAndParseAsInts<int32>(text, delim, strings::safe_strto32, result); in SplitAndParseAsInts()
/external/tensorflow/tensorflow/stream_executor/lib/
Dnumbers.cc24 bool safe_strto32(const char* str, int32* value) { in safe_strto32() function
36 bool safe_strto32(const string& str, int32* value) { in safe_strto32() function
37 return port::safe_strto32(str.c_str(), value); in safe_strto32()
Dnumbers.h28 bool safe_strto32(const string& str, int32* value);
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/
Ddata_spec.h28 using tensorflow::strings::safe_strto32;
44 safe_strto32(tokens[3], &original_type_); in ParseFromString()
45 safe_strto32(tokens[5], &size_); in ParseFromString()
81 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 safe_strto32(test.feature_id().id().value(), &feature_num_); in InequalityDecisionNodeEvaluator()
75 safe_strto32(test.oblique().features(i).id().value(), &val); in ObliqueInequalityDecisionNodeEvaluator()
100 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/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.cc89 if (!port::safe_strto32(pieces[0], &major)) { in StringToDriverVersion()
96 if (!port::safe_strto32(pieces[1], &minor)) { in StringToDriverVersion()
103 if (pieces.size() == 3 && !port::safe_strto32(pieces[2], &patch)) { in StringToDriverVersion()
/external/tensorflow/tensorflow/core/kernels/
Dgpu_utils.h104 strings::safe_strto32(threshold_str, &min_score_threshold_); in AutoTuneMap()
109 strings::safe_strto32(min_warmup_iteration_str, &min_warmup_iterations); in AutoTuneMap()
Dremote_fused_graph_execute_utils.cc1202 CHECK(strings::safe_strto32(attr.at(0), &node_type_int)) << attr.at(0); in FuseRemoteGraphByPlacedArguments()
1213 CHECK(strings::safe_strto32(attr.at(1), &port)); in FuseRemoteGraphByPlacedArguments()
1214 CHECK(strings::safe_strto32(attr.at(2), &index)); in FuseRemoteGraphByPlacedArguments()
1230 CHECK(strings::safe_strto32(attr.at(1), &port)); in FuseRemoteGraphByPlacedArguments()
1231 CHECK(strings::safe_strto32(attr.at(2), &index)); in FuseRemoteGraphByPlacedArguments()
1242 CHECK(strings::safe_strto32(attr.at(1), &port)); in FuseRemoteGraphByPlacedArguments()
1243 CHECK(strings::safe_strto32(attr.at(2), &index)); in FuseRemoteGraphByPlacedArguments()
1249 CHECK(strings::safe_strto32(attr.at(1), &port)); in FuseRemoteGraphByPlacedArguments()
1250 CHECK(strings::safe_strto32(attr.at(2), &index)); in FuseRemoteGraphByPlacedArguments()
Ddecode_csv_op.cc93 OP_REQUIRES(ctx, strings::safe_strto32(fields[f], &value), in Compute()
Dlookup_util.cc195 if (!strings::safe_strto32(token.c_str(), &value)) { in SetValue()
Ddebug_ops.h141 context, strings::safe_strto32(name_items[1], &output_slot), in BaseDebugOp()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_server_lib.cc150 !strings::safe_strto32(hostname_port[1], &requested_port)) { in Init()
298 if (!strings::safe_strto32(str_util::Split(host_port, ':')[1], in WorkerCacheFactory()
/external/tensorflow/tensorflow/core/common_runtime/
Dstep_stats_collector.cc100 CHECK(strings::safe_strto32(ordered_capture, &gpu_id)); in ExtractGpuWithStreamAll()
129 CHECK(strings::safe_strto32(ordered_capture, &gpu_id)); in ExtractGpuWithoutStream()
/external/tensorflow/tensorflow/contrib/verbs/
Dverbs_server_lib.cc64 if (!strings::safe_strto32(str_util::Split(host_port, ':')[1], in ChannelCacheFactory()
Drdma_mgr.cc236 if (strings::safe_strto32(content, &value)) { in TryToReadNumaNode()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dinsert_logging.cc83 if (!strings::safe_strto32(output_index_string, &output_index)) { in InsertLogging()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_device.cc683 if (!strings::safe_strto32(cuda_gpu_id_str, &cuda_gpu_id)) { in ParseVisibleDeviceList()
1184 if (strings::safe_strto32(tf_min_gpu_core_count, &min_gpu_core_count)) { in GetMinGPUMultiprocessorCount()
1207 CHECK(strings::safe_strto32(major_str, &major_part)) in CudaVersion()
1210 CHECK(strings::safe_strto32(minor_str, &minor_part)) in CudaVersion()
/external/protobuf/src/google/protobuf/util/internal/
Ddatapiece.cc116 if (type_ == TYPE_STRING) return StringToNumber<int32>(safe_strto32); in ToInt32()
/external/tensorflow/tensorflow/contrib/kafka/kernels/
Dkafka_dataset_ops.cc231 if (!strings::safe_strto32(parts[1], &partition)) { in SetupStreamsLocked()

12