Home
last modified time | relevance | path

Searched refs:stoi (Results 1 – 25 of 61) sorted by relevance

123

/third_party/benchmark/test/
Dstring_util_gtest.cc70 TEST(StringUtilTest, stoi){{size_t pos = 0; in TEST() argument
71 EXPECT_EQ(0, benchmark::stoi("0", &pos)); in TEST()
76 EXPECT_EQ(-17, benchmark::stoi("-17", &pos)); in TEST()
81 EXPECT_EQ(1357, benchmark::stoi("1357", &pos)); in TEST()
86 EXPECT_EQ(10, benchmark::stoi("1010", &pos, 2)); in TEST()
91 EXPECT_EQ(520, benchmark::stoi("1010", &pos, 8)); in TEST()
96 EXPECT_EQ(1010, benchmark::stoi("1010", &pos, 10)); in TEST()
101 EXPECT_EQ(4112, benchmark::stoi("1010", &pos, 16)); in TEST()
106 EXPECT_EQ(0xBEEF, benchmark::stoi("BEEF", &pos, 16)); in TEST()
110 { ASSERT_THROW(benchmark::stoi("this is a test"), std::invalid_argument); } in TEST()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/cache/perf/
Dcache_pipeline_run.cc35 my_pipeline_ = std::stoi(s); in ProcessPipelineArgs()
40 crc_ = std::stoi(s); in ProcessPipelineArgs()
42 recv_id_ = std::stoi(s); in ProcessPipelineArgs()
44 send_id_ = std::stoi(s); in ProcessPipelineArgs()
46 num_pipelines_ = std::stoi(s); in ProcessPipelineArgs()
48 num_epoches_ = std::stoi(s); in ProcessPipelineArgs()
52 row_size_ = std::stoi(s); in ProcessPipelineArgs()
80 cache_builder_.SetPort(std::stoi(s)); in ProcessClientArgs()
82 cache_builder_.SetPrefetchSize(std::stoi(s)); in ProcessClientArgs()
84 cache_builder_.SetCacheMemSz(std::stoi(s)); in ProcessClientArgs()
[all …]
Dcache_perf_run.cc74 num_pipelines_ = std::stoi(optarg); in ProcessArgsHelper()
79 num_epoches_ = std::stoi(optarg); in ProcessArgsHelper()
84 int32_t prefetch_sz = std::stoi(optarg); in ProcessArgsHelper()
90 int32_t cache_sz = std::stoi(optarg); in ProcessArgsHelper()
96 num_rows_ = std::stoi(optarg); in ProcessArgsHelper()
101 row_size_ = std::stoi(optarg); in ProcessArgsHelper()
106 cfg_.set_num_parallel_workers(std::stoi(optarg)); in ProcessArgsHelper()
111 int32_t connection_sz = std::stoi(optarg); in ProcessArgsHelper()
117 int32_t port = std::stoi(optarg); in ProcessArgsHelper()
/third_party/mindspore/mindspore/lite/src/delegate/npu/
Dnpu_manager.cc35 if (stoi(string1) > stoi(string2)) return 1; in CompareVersion()
36 if (stoi(string1) < stoi(string2)) return -1; in CompareVersion()
/third_party/e2fsprogs/contrib/android/
Ddac_config.cpp185 uid = stoi(values[DAC_UID_IDX]); in LoadDacConfig()
190 uid = stoi(values[DAC_GID_IDX]); in LoadDacConfig()
194 …DacConfig dacConfig(stoi(values[DAC_MODE_IDX], 0, 8), uid, gid, cap, values[DAC_PATH_IDX]); // 8 o… in LoadDacConfig()
/third_party/benchmark/src/
Dstring_util.h54 int stoi(const std::string& str, size_t* pos = nullptr, int base = 10);
58 using std::stoi; // NOLINT(misc-unused-using-decls)
/third_party/mindspore/mindspore/ccsrc/backend/session/
Dkernel_build_client.cc128 return std::stoi(res); in TbeStart()
154 *task_id = std::stoi(SendRequest(kContinue)); in TbeWait()
/third_party/skia/third_party/externals/angle2/src/gpu_info_util/
DSystemInfo_android.cpp50 info->androidSdkLevel = std::stoi(androidSdkLevel); in GetSystemInfo()
/third_party/skia/third_party/externals/tint/src/
Ddemangler.cc53 Symbol sym(std::stoi(id), symbols.ProgramID()); in Demangle()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/graph_util/
Dgraph_info.cc68 *loop_index = IntToSize(std::stoi(result[1])); in GetLoopIndexFromCNode()
/third_party/boost/boost/utility/
Dstring_ref.hpp439 inline int stoi (string_ref str, size_t* idx=0, int base=10) {
440 return std::stoi ( std::string(str), idx, base );
471 inline int stoi (wstring_ref str, size_t* idx=0, int base=10) {
472 return std::stoi ( std::wstring(str), idx, base );
Dstring_view.hpp590 inline int stoi (string_view str, size_t* idx=0, int base=10) {
591 return std::stoi ( std::string(str), idx, base );
622 inline int stoi (wstring_view str, size_t* idx=0, int base=10) {
623 return std::stoi ( std::wstring(str), idx, base );
/third_party/nghttp2/examples/
Dasio-sv2.cc65 std::size_t num_threads = std::stoi(argv[3]); in main()
Dasio-sv.cc59 std::size_t num_threads = std::stoi(argv[3]); in main()
/third_party/skia/include/private/
DSkSLString.h68 bool stoi(const skstd::string_view& s, SKSL_INT* value);
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/
Dceleba_op.cc154 type = std::stoi(vec[1]); in CheckDatasetTypeValid()
199 value = std::stoi(split[label_index]); in ParseImageAttrInfo()
Dalbum_op.cc57 int64_t value_a = std::stoi(a.substr(1, a.find(".")).c_str()); in StrComp()
58 int64_t value_b = std::stoi(b.substr(1, b.find(".")).c_str()); in StrComp()
260 int64_t image_id = std::stoi(file.substr(1, file.find(".")).c_str()); in LoadIDTensor()
Dusps_op.cc247 *label = static_cast<uint32_t>(std::stoi(item)) - 1; in ParseLine()
253 CHECK_FAIL_RETURN_UNEXPECTED(std::stoi(item.substr(0, split_pos)) == (split_num - 1), in ParseLine()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DLLVMAsm.cpp131 auto alignPow2 = std::stoi(matches[1]); in fixupAsmFile()
/third_party/flutter/skia/src/sksl/
DSkSLString.h115 SKSL_INT stoi(const String& s);
/third_party/mindspore/mindspore/lite/tools/converter/
Dconverter_flags.cc197 dim_value = std::stoi(dim); in InitInTensorShape()
420 compute_rate = std::stoi(rate.back()); in CheckOfflineParallelConfig()
/third_party/skia/src/sksl/
DSkSLString.cpp156 bool stoi(const skstd::string_view& s, SKSL_INT* value) { in stoi() function
/third_party/boost/libs/process/test/
Dposix_specific.cpp118 fds.push_back(std::stoi(fd.path().filename().string())); in __anondf27bc370102()
/third_party/mindspore/mindspore/lite/src/
Dhuffman_decode.cc77 auto key = stoi(huffman_keys[i]); in RebuildHuffmanTree()
/third_party/skia/tools/
DMSKPPlayer.cpp301 fNextDrawPictureToLayerID = std::stoi(tokens[1].c_str()); in onDrawAnnotation()
315 fNextDrawImageFromLayerID = std::stoi(tokens[1].c_str()); in onDrawAnnotation()

123