/external/tensorflow/tensorflow/core/lib/strings/ |
D | numbers_test.cc | 119 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 …]
|
D | numbers.h | 98 bool safe_strto32(StringPiece str, int32* value); 126 return safe_strto32(s, value); in ProtoParseNumeric()
|
D | str_util.cc | 437 return SplitAndParseAsInts<int32>(text, delim, strings::safe_strto32, result); in SplitAndParseAsInts()
|
/external/tensorflow/tensorflow/stream_executor/lib/ |
D | numbers.cc | 24 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()
|
D | numbers.h | 28 bool safe_strto32(const string& str, int32* value);
|
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/ |
D | data_spec.h | 28 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()
|
D | model_ops.cc | 416 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/ |
D | decision_node_evaluator.cc | 54 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()
|
D | input_data.cc | 87 safe_strto32(feature_id.id().value(), &feature); in GetExampleValue()
|
D | candidate_graph_runner.cc | 65 safe_strto32(id.id().value(), &feat(i++)); in CandidateGraphRunner()
|
/external/protobuf/src/google/protobuf/stubs/ |
D | strutil.h | 394 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/ |
D | cuda_diagnostics.cc | 89 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/ |
D | gpu_utils.h | 104 strings::safe_strto32(threshold_str, &min_score_threshold_); in AutoTuneMap() 109 strings::safe_strto32(min_warmup_iteration_str, &min_warmup_iterations); in AutoTuneMap()
|
D | remote_fused_graph_execute_utils.cc | 1202 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()
|
D | decode_csv_op.cc | 93 OP_REQUIRES(ctx, strings::safe_strto32(fields[f], &value), in Compute()
|
D | lookup_util.cc | 195 if (!strings::safe_strto32(token.c_str(), &value)) { in SetValue()
|
D | debug_ops.h | 141 context, strings::safe_strto32(name_items[1], &output_slot), in BaseDebugOp()
|
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/ |
D | grpc_server_lib.cc | 150 !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/ |
D | step_stats_collector.cc | 100 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/ |
D | verbs_server_lib.cc | 64 if (!strings::safe_strto32(str_util::Split(host_port, ':')[1], in ChannelCacheFactory()
|
D | rdma_mgr.cc | 236 if (strings::safe_strto32(content, &value)) { in TryToReadNumaNode()
|
/external/tensorflow/tensorflow/tools/graph_transforms/ |
D | insert_logging.cc | 83 if (!strings::safe_strto32(output_index_string, &output_index)) { in InsertLogging()
|
/external/tensorflow/tensorflow/core/common_runtime/gpu/ |
D | gpu_device.cc | 683 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/ |
D | datapiece.cc | 116 if (type_ == TYPE_STRING) return StringToNumber<int32>(safe_strto32); in ToInt32()
|
/external/tensorflow/tensorflow/contrib/kafka/kernels/ |
D | kafka_dataset_ops.cc | 231 if (!strings::safe_strto32(parts[1], &partition)) { in SetupStreamsLocked()
|