Home
last modified time | relevance | path

Searched refs:last_id (Results 1 – 25 of 30) sorted by relevance

12

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/sampler/
Dsubset_sampler.cc70 int64_t last_id = sample_id_ + samples_per_tensor_; in GetNextSample() local
72 if (last_id > num_samples_) { in GetNextSample()
73 last_id = num_samples_; in GetNextSample()
77 RETURN_IF_NOT_OK(CreateSamplerTensor(&outputIds, last_id - sample_id_)); in GetNextSample()
81 while (sample_id_ < last_id) { in GetNextSample()
Dmind_record_sampler.cc34 int64_t last_id = std::min(samples_per_tensor_ + next_id_, num_samples_); in GetNextSample() local
35 RETURN_IF_NOT_OK(CreateSamplerTensor(&sampleIdsTensor, last_id - next_id_)); in GetNextSample()
37 for (int64_t i = 0; i < (last_id - next_id_); i++) { in GetNextSample()
40 next_id_ = last_id; in GetNextSample()
Dweighted_random_sampler.cc139 int64_t last_id = sample_id_ + samples_per_tensor_; in GetNextSample() local
141 if (last_id > num_samples_) { in GetNextSample()
142 last_id = num_samples_; in GetNextSample()
146 RETURN_IF_NOT_OK(CreateSamplerTensor(&outputIds, last_id - sample_id_)); in GetNextSample()
151 while (sample_id_ < last_id) { in GetNextSample()
Drandom_sampler.cc45 int64_t last_id = std::min(samples_per_tensor_ + next_id_, num_samples_); in GetNextSample() local
46 RETURN_IF_NOT_OK(CreateSamplerTensor(&sampleIds, last_id - next_id_)); in GetNextSample()
49 for (int64_t i = 0; i < (last_id - next_id_); i++) { in GetNextSample()
63 next_id_ = last_id; in GetNextSample()
Dpk_sampler.cc84 …int64_t last_id = (samples_per_tensor_ + next_id_ > num_samples_) ? num_samples_ : samples_per_ten… in GetNextSample() local
85 RETURN_IF_NOT_OK(CreateSamplerTensor(&sample_ids, last_id - next_id_)); in GetNextSample()
88 while (next_id_ < last_id && id_ptr != sample_ids->end<int64_t>()) { in GetNextSample()
/third_party/mindspore/mindspore/core/ir/
Dprimitive.cc25 static std::atomic<uint64_t> last_id{1}; in MakeId() local
26 return last_id.fetch_add(1, std::memory_order_relaxed); in MakeId()
Dtensor.cc47 static std::atomic<uint64_t> last_id{1}; in MakeId() local
48 return "T" + std::to_string(last_id.fetch_add(1, std::memory_order_relaxed)); in MakeId()
/third_party/mindspore/mindspore/lite/src/train/
Dtrain_export.cc265 std::unique_ptr<schema::TensorT> TrainExport::CreateTransformConst(size_t last_id) { in CreateTransformConst() argument
275 tensorT->name = "const-" + std::to_string(last_id); in CreateTransformConst()
303 size_t last_id = meta_graph_->allTensors.size(); in AddTransformNode() local
306 auto tensorConst = CreateTransformConst(last_id); in AddTransformNode()
324 … std::vector<uint32_t> in_idx = {static_cast<uint32_t>(it.second), static_cast<uint32_t>(last_id)}; in AddTransformNode()
325 std::vector<uint32_t> out_idx = {static_cast<uint32_t>(last_id + 1)}; in AddTransformNode()
326 reconnect[it.first] = last_id + 1; in AddTransformNode()
Dtrain_export.h74 std::unique_ptr<schema::TensorT> CreateTransformConst(size_t last_id);
/third_party/flutter/skia/third_party/externals/spirv-tools/test/val/
Dval_limits_test.cpp614 int last_id = 14; in GenerateSpirvProgramWithCfgNestingDepth() local
625 for (int i = largest_index+1; i > last_id; i = i - 2) { in GenerateSpirvProgramWithCfgNestingDepth()
629 spirv << "%" << last_id << " = OpLabel" << "\n"; in GenerateSpirvProgramWithCfgNestingDepth()
/third_party/ffmpeg/libavformat/
Dsubtitles.c176 const int last_id = i - 1 - drop; in drop_dups() local
177 const AVPacket *last = q->subs[last_id]; in drop_dups()
187 q->subs[last_id + 1] = q->subs[i]; in drop_dups()
/third_party/skia/third_party/externals/spirv-tools/test/val/
Dval_limits_test.cpp692 int last_id = 14; in GenerateSpirvProgramWithCfgNestingDepth() local
703 for (int i = largest_index+1; i > last_id; i = i - 2) { in GenerateSpirvProgramWithCfgNestingDepth()
707 spirv << "%" << last_id << " = OpLabel" << "\n"; in GenerateSpirvProgramWithCfgNestingDepth()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_limits_test.cpp692 int last_id = 14; in GenerateSpirvProgramWithCfgNestingDepth() local
703 for (int i = largest_index+1; i > last_id; i = i - 2) { in GenerateSpirvProgramWithCfgNestingDepth()
707 spirv << "%" << last_id << " = OpLabel" << "\n"; in GenerateSpirvProgramWithCfgNestingDepth()
/third_party/spirv-tools/test/val/
Dval_limits_test.cpp692 int last_id = 14; in GenerateSpirvProgramWithCfgNestingDepth() local
703 for (int i = largest_index+1; i > last_id; i = i - 2) { in GenerateSpirvProgramWithCfgNestingDepth()
707 spirv << "%" << last_id << " = OpLabel" << "\n"; in GenerateSpirvProgramWithCfgNestingDepth()
/third_party/boost/boost/spirit/home/lex/lexer/lexertl/
Dgenerate_static.hpp120 std::size_t last_id = 0; in generate_cpp_state_info() local
121 for (iterator rit = reverse_state_map.begin(); rit != rend; ++last_id) in generate_cpp_state_info()
123 for (/**/; last_id < (*rit).first; ++last_id) in generate_cpp_state_info()
/third_party/gstreamer/gstreamer/gst/
Dgstdevicemonitor.c115 guint last_id; member
325 self->priv->last_id = 1; in gst_device_monitor_init()
677 filter->id = monitor->priv->last_id++; in gst_device_monitor_add_filter_unlocked()
/third_party/spirv-tools/source/opt/
Dinstrument_pass.cpp392 const uint32_t last_id = (*last_blk)->id(); in UpdateSucceedingPhis() local
395 [&first_id, &last_id, this](const uint32_t succ) { in UpdateSucceedingPhis()
397 sbp->ForEachPhiInst([&first_id, &last_id, this](Instruction* phi) { in UpdateSucceedingPhis()
399 phi->ForEachInId([&first_id, &last_id, &changed](uint32_t* id) { in UpdateSucceedingPhis()
401 *id = last_id; in UpdateSucceedingPhis()
Dinst_bindless_check_pass.cpp515 uint32_t last_id = builder->GetUintConstantId(last); in GenLastByteIdx() local
517 builder->AddBinaryOp(GetUintId(), SpvOpIAdd, sum_id, last_id); in GenLastByteIdx()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dinstrument_pass.cpp392 const uint32_t last_id = (*last_blk)->id(); in UpdateSucceedingPhis() local
395 [&first_id, &last_id, this](const uint32_t succ) { in UpdateSucceedingPhis()
397 sbp->ForEachPhiInst([&first_id, &last_id, this](Instruction* phi) { in UpdateSucceedingPhis()
399 phi->ForEachInId([&first_id, &last_id, &changed](uint32_t* id) { in UpdateSucceedingPhis()
401 *id = last_id; in UpdateSucceedingPhis()
Dinst_bindless_check_pass.cpp515 uint32_t last_id = builder->GetUintConstantId(last); in GenLastByteIdx() local
517 builder->AddBinaryOp(GetUintId(), SpvOpIAdd, sum_id, last_id); in GenLastByteIdx()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dinstrument_pass.cpp392 const uint32_t last_id = (*last_blk)->id(); in UpdateSucceedingPhis() local
395 [&first_id, &last_id, this](const uint32_t succ) { in UpdateSucceedingPhis()
397 sbp->ForEachPhiInst([&first_id, &last_id, this](Instruction* phi) { in UpdateSucceedingPhis()
399 phi->ForEachInId([&first_id, &last_id, &changed](uint32_t* id) { in UpdateSucceedingPhis()
401 *id = last_id; in UpdateSucceedingPhis()
/third_party/gstreamer/gstplugins_good/gst/flv/
Dgstindex.c197 index->last_id = 0; in gst_index_init()
752 *id = ++index->last_id; in gst_index_get_writer_id()
Dgstindex.h342 gint last_id; member
/third_party/gstreamer/gstreamer/libs/gst/base/
Dgstindex.c186 index->last_id = 0; in gst_index_init()
738 *id = ++index->last_id; in gst_index_get_writer_id()
Dgstindex.h345 gint last_id; member

12