/external/tensorflow/tensorflow/core/platform/ |
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()
|
D | numbers.cc | 293 bool safe_strto32(StringPiece str, int32* value) { in safe_strto32() function
|
/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 std::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 std::string& str, int32* value);
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | process_util.cc | 96 return (val && strings::safe_strto32(val, &num)) ? num : 0; in NumInterOpThreadsFromEnvironment() 102 return (val && strings::safe_strto32(val, &num)) ? num : 0; in NumIntraOpThreadsFromEnvironment() 111 return (val && strings::safe_strto32(val, &num)) ? num : 0; in OMPThreadsFromEnvironment()
|
D | step_stats_collector.cc | 225 CHECK(strings::safe_strto32(ordered_capture, &gpu_id)); in ExtractGpuWithStreamAll() 254 CHECK(strings::safe_strto32(ordered_capture, &gpu_id)); in ExtractGpuWithoutStream()
|
/external/tensorflow/tensorflow/stream_executor/rocm/ |
D | rocm_diagnostics.cc | 71 if (!port::safe_strto32(pieces[0], &major)) { in StringToDriverVersion() 78 if (!port::safe_strto32(pieces[1], &minor)) { in StringToDriverVersion() 85 if (pieces.size() == 3 && !port::safe_strto32(pieces[2], &patch)) { in StringToDriverVersion()
|
/external/tensorflow/tensorflow/stream_executor/cuda/ |
D | cuda_diagnostics.cc | 83 if (!port::safe_strto32(pieces[0], &major)) { in StringToDriverVersion() 90 if (!port::safe_strto32(pieces[1], &minor)) { in StringToDriverVersion() 97 if (pieces.size() == 3 && !port::safe_strto32(pieces[2], &patch)) { in StringToDriverVersion()
|
/external/protobuf/src/google/protobuf/stubs/ |
D | strutil.h | 397 PROTOBUF_EXPORT bool safe_strto32(const string& str, int32* value); 399 inline bool safe_strto32(const char* str, int32* value) { in safe_strto32() function 400 return safe_strto32(string(str), value); in safe_strto32() 402 inline bool safe_strto32(StringPiece str, int32* value) { in safe_strto32() function 403 return safe_strto32(str.ToString(), value); in safe_strto32()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | gpu_utils.h | 155 strings::safe_strto32(threshold_str, &min_score_threshold_); in AutoTuneMap() 160 strings::safe_strto32(min_warmup_iteration_str, &min_warmup_iterations); in AutoTuneMap()
|
D | remote_fused_graph_execute_utils.cc | 1201 CHECK(strings::safe_strto32(attr.at(0), &node_type_int)) << attr.at(0); in FuseRemoteGraphByPlacedArguments() 1212 CHECK(strings::safe_strto32(attr.at(1), &port)); in FuseRemoteGraphByPlacedArguments() 1213 CHECK(strings::safe_strto32(attr.at(2), &index)); in FuseRemoteGraphByPlacedArguments() 1229 CHECK(strings::safe_strto32(attr.at(1), &port)); in FuseRemoteGraphByPlacedArguments() 1230 CHECK(strings::safe_strto32(attr.at(2), &index)); in FuseRemoteGraphByPlacedArguments() 1241 CHECK(strings::safe_strto32(attr.at(1), &port)); in FuseRemoteGraphByPlacedArguments() 1242 CHECK(strings::safe_strto32(attr.at(2), &index)); in FuseRemoteGraphByPlacedArguments() 1248 CHECK(strings::safe_strto32(attr.at(1), &port)); in FuseRemoteGraphByPlacedArguments() 1249 CHECK(strings::safe_strto32(attr.at(2), &index)); in FuseRemoteGraphByPlacedArguments()
|
D | decode_csv_op.cc | 109 OP_REQUIRES(ctx, strings::safe_strto32(fields[f], &value), in Compute()
|
D | lookup_util.cc | 213 if (!strings::safe_strto32(token.c_str(), &value)) { in SetValue()
|
/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 | 82 if (!strings::safe_strto32(output_index_string, &output_index)) { in InsertLogging()
|
D | transform_utils.cc | 651 if (!strings::safe_strto32(StringPiece(string_value), result)) { in GetOneInt32Parameter()
|
/external/tensorflow/tensorflow/core/framework/ |
D | run_handler_util.cc | 64 if (strings::safe_strto32(split, &num)) { in ParamFromEnvWithDefault()
|
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/ |
D | grpc_server_lib.cc | 146 if (!strings::safe_strto32(iter->second.substr(colon_index + 1), in GetHostAndPort() 383 if (!strings::safe_strto32(host_port.substr(colon_index + 1), in WorkerCacheFactory()
|
/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 | 798 if (!strings::safe_strto32(platform_gpu_id_str, &platform_gpu_id)) { in ParseVisibleDeviceList() 1001 if (!strings::safe_strto32(force_device_reserved_bytes, &reserved_mb) || in SingleVirtualDeviceMemoryLimit() 1626 if (strings::safe_strto32(tf_min_gpu_core_count, &min_gpu_core_count)) { in GetMinGPUMultiprocessorCount() 1650 CHECK(strings::safe_strto32(major_str, &major_part)) in CudaVersion() 1653 CHECK(strings::safe_strto32(minor_str, &minor_part)) in CudaVersion()
|
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/ |
D | trt_optimization_pass.cc | 225 !strings::safe_strto32(tokens.back(), &dumm_port)) { // non-absl ok in Optimize()
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | datapiece.cc | 120 if (type_ == TYPE_STRING) return StringToNumber<int32>(safe_strto32); in ToInt32()
|
/external/tensorflow/tensorflow/core/debug/ |
D | debug_grpc_io_utils_test.cc | 251 strings::safe_strto32(items[2], &tensor_index); in TEST_F()
|
/external/tensorflow/tensorflow/tools/benchmark/ |
D | benchmark_model.cc | 541 CHECK(strings::safe_strto32(layer_shape, &tmp)) in Main()
|