/external/tensorflow/tensorflow/core/lib/strings/ |
D | numbers_test.cc | 120 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 …]
|
D | numbers.h | 97 bool safe_strto32(StringPiece str, int32* value); 127 return safe_strto32(s, value); in ProtoParseNumeric()
|
/external/tensorflow/tensorflow/stream_executor/lib/ |
D | numbers.cc | 23 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()
|
D | numbers.h | 27 bool safe_strto32(const string& str, int32* value);
|
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/ |
D | data_spec.h | 29 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()
|
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 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()
|
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/tensorflow/tensorflow/stream_executor/rocm/ |
D | rocm_diagnostics.cc | 70 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/ |
D | ignite_dataset_ops.cc | 112 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/ |
D | process_util.cc | 68 return (val && strings::safe_strto32(val, &num)) ? num : 0; in NumInterOpThreadsFromEnvironment() 74 return (val && strings::safe_strto32(val, &num)) ? num : 0; in NumIntraOpThreadsFromEnvironment()
|
D | step_stats_collector.cc | 227 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/ |
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 | 80 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/ |
D | gpu_utils.h | 108 strings::safe_strto32(threshold_str, &min_score_threshold_); in AutoTuneMap() 113 strings::safe_strto32(min_warmup_iteration_str, &min_warmup_iterations); in AutoTuneMap()
|
D | remote_fused_graph_execute_utils.cc | 1199 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/ |
D | utils.h | 144 if (!strings::safe_strto32(remaining, &position)) { in NodePositionIfSameNode() 198 if (!strings::safe_strto32(remaining, position)) { in ParseNodeNameAsStringPiece()
|
/external/dynamic_depth/internal/strings/ |
D | numbers.h | 46 inline bool safe_strto32(const string& text, int32* value) { in safe_strto32() function
|
/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/distributed_runtime/rpc/ |
D | grpc_server_lib.cc | 135 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/ |
D | verbs_server_lib.cc | 66 if (!strings::safe_strto32(str_util::Split(host_port, ':')[1], in ChannelCacheFactory()
|
D | rdma_mgr.cc | 238 if (strings::safe_strto32(content, &value)) { in TryToReadNumaNode()
|
/external/tensorflow/tensorflow/core/grappler/optimizers/data/ |
D | function_utils.cc | 64 CHECK(strings::safe_strto32(capture, &position)); in FunctionDefTensorDesc()
|
/external/tensorflow/tensorflow/core/common_runtime/gpu/ |
D | gpu_device.cc | 786 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()
|