Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/core/platform/
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()
Dnumbers.cc293 bool safe_strto32(StringPiece str, int32* value) { in safe_strto32() function
/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 std::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 std::string& str, int32* value);
/external/tensorflow/tensorflow/core/common_runtime/
Dprocess_util.cc96 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()
Dstep_stats_collector.cc225 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/
Drocm_diagnostics.cc71 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/
Dcuda_diagnostics.cc83 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/
Dstrutil.h397 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/
Dgpu_utils.h155 strings::safe_strto32(threshold_str, &min_score_threshold_); in AutoTuneMap()
160 strings::safe_strto32(min_warmup_iteration_str, &min_warmup_iterations); in AutoTuneMap()
Dremote_fused_graph_execute_utils.cc1201 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()
Ddecode_csv_op.cc109 OP_REQUIRES(ctx, strings::safe_strto32(fields[f], &value), in Compute()
Dlookup_util.cc213 if (!strings::safe_strto32(token.c_str(), &value)) { in SetValue()
/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.cc82 if (!strings::safe_strto32(output_index_string, &output_index)) { in InsertLogging()
Dtransform_utils.cc651 if (!strings::safe_strto32(StringPiece(string_value), result)) { in GetOneInt32Parameter()
/external/tensorflow/tensorflow/core/framework/
Drun_handler_util.cc64 if (strings::safe_strto32(split, &num)) { in ParamFromEnvWithDefault()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_server_lib.cc146 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/
Dfunction_utils.cc64 CHECK(strings::safe_strto32(capture, &position)); in FunctionDefTensorDesc()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_device.cc798 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/
Dtrt_optimization_pass.cc225 !strings::safe_strto32(tokens.back(), &dumm_port)) { // non-absl ok in Optimize()
/external/protobuf/src/google/protobuf/util/internal/
Ddatapiece.cc120 if (type_ == TYPE_STRING) return StringToNumber<int32>(safe_strto32); in ToInt32()
/external/tensorflow/tensorflow/core/debug/
Ddebug_grpc_io_utils_test.cc251 strings::safe_strto32(items[2], &tensor_index); in TEST_F()
/external/tensorflow/tensorflow/tools/benchmark/
Dbenchmark_model.cc541 CHECK(strings::safe_strto32(layer_shape, &tmp)) in Main()

12