Home
last modified time | relevance | path

Searched refs:elements_ (Results 1 – 18 of 18) sorted by relevance

/external/tensorflow/tensorflow/lite/experimental/kernels/
Dtop_n.h101 size_t size() const { return std::min(elements_.size(), limit_); } in size()
108 void reserve(size_t n) { elements_.reserve(std::min(n, limit_ + 1)); } in reserve()
179 UnsortedIterator unsorted_begin() const { return elements_.begin(); } in unsorted_begin()
180 UnsortedIterator unsorted_end() const { return elements_.begin() + size(); } in unsorted_end()
201 std::vector<T> elements_; variable
218 elements_.push_back(std::forward<U>(v)); // NOLINT(build/c++11) in PushInternal()
219 if (state_ == UNORDERED || cmp_(elements_.back(), elements_.front())) { in PushInternal()
228 swap(elements_.front(), elements_.back()); in PushInternal()
230 if (elements_.size() == limit_ + 1) { in PushInternal()
232 std::make_heap(elements_.begin(), elements_.end(), cmp_); in PushInternal()
[all …]
/external/tensorflow/tensorflow/core/lib/gtl/
Dtop_n.h99 size_t size() const { return std::min(elements_.size(), limit_); } in size()
106 void reserve(size_t n) { elements_.reserve(std::min(n, limit_ + 1)); } in reserve()
177 UnsortedIterator unsorted_begin() const { return elements_.begin(); } in unsorted_begin()
178 UnsortedIterator unsorted_end() const { return elements_.begin() + size(); } in unsorted_end()
199 std::vector<T> elements_; variable
216 elements_.push_back(std::forward<U>(v)); // NOLINT(build/c++11) in PushInternal()
217 if (state_ == UNORDERED || cmp_(elements_.back(), elements_.front())) { in PushInternal()
226 swap(elements_.front(), elements_.back()); in PushInternal()
228 if (elements_.size() == limit_ + 1) { in PushInternal()
230 std::make_heap(elements_.begin(), elements_.end(), cmp_); in PushInternal()
[all …]
/external/libgav1/libgav1/src/utils/
Dqueue.h36 elements_.reset(new (std::nothrow) T[capacity]); in Init()
37 if (elements_ == nullptr) return false; in Init()
46 elements_[end_++] = std::move(value); in Push()
55 const T element = std::move(elements_[begin_++]); in Pop()
65 return elements_[begin_]; in Front()
73 return elements_[back]; in Back()
94 std::unique_ptr<T[]> elements_;
Dstack.h37 elements_[top_] = std::move(value); in Push()
44 return std::move(elements_[top_--]); in Pop()
52 T elements_[capacity]; variable
/external/tensorflow/tensorflow/core/kernels/data/
Dwindow_dataset.cc34 elements_(std::move(elements)),
52 for (auto& element : elements_) { in AllocatedBytes()
60 for (auto& element : elements_) { in TotalBytes()
66 int64 Cardinality() const override { return elements_.size(); } in Cardinality()
95 if (i_ == dataset()->elements_.size()) { in GetNextInternal()
99 *out_tensors = dataset()->elements_[i_++]; in GetNextInternal()
124 const std::vector<std::vector<Tensor>> elements_; member in tensorflow::data::__anonb5d693710111::WindowDataset
/external/libtextclassifier/native/lang_id/common/fel/
Dworkspace.cc47 VectorIntWorkspace::VectorIntWorkspace(int size) : elements_(size) {} in VectorIntWorkspace()
50 : elements_(size, value) {} in VectorIntWorkspace()
53 : elements_(elements) {} in VectorIntWorkspace()
Dworkspace.h189 int element(int i) const { return elements_[i]; } in element()
192 void set_element(int i, int value) { elements_[i] = value; } in set_element()
195 int size() const { return elements_.size(); } in size()
199 std::vector<int> elements_;
/external/XNNPACK/test/
Draddextexp-microkernel-tester.h26 this->elements_ = elements; in elements()
31 return this->elements_; in elements()
70 size_t elements_{1};
Draddexpminusmax-microkernel-tester.h26 this->elements_ = elements; in elements()
31 return this->elements_; in elements()
72 size_t elements_{1};
Dvscaleextexp-microkernel-tester.h26 this->elements_ = elements; in elements()
31 return this->elements_; in elements()
82 size_t elements_{1};
Dvscaleexpminusmax-microkernel-tester.h26 this->elements_ = elements; in elements()
31 return this->elements_; in elements()
85 size_t elements_{1};
Draddstoreexpminusmax-microkernel-tester.h26 this->elements_ = elements; in elements()
31 return this->elements_; in elements()
81 size_t elements_{1};
Dgavgpool-cw-microkernel-tester.h34 this->elements_ = elements; in elements()
39 return this->elements_; in elements()
142 size_t elements_{1};
/external/tensorflow/tensorflow/core/data/service/
Dtask_runner_test.cc32 : elements_(elements), index_(0) {} in TestTaskIterator()
35 end_of_sequence = index_ >= elements_.size(); in GetNext()
38 TF_RETURN_IF_ERROR(CompressElement(elements_[index_], &compressed)); in GetNext()
41 index_ = (index_ + 1) % elements_.size(); in GetNext()
49 std::vector<std::vector<Tensor>> elements_; member in tensorflow::data::__anon0bd4bbdc0111::TestTaskIterator
/external/protobuf/src/google/protobuf/
Dmap.h180 delete elements_; in ~Map() local
186 elements_ = in Init()
1033 iterator begin() { return iterator(elements_->begin()); } in begin()
1034 iterator end() { return iterator(elements_->end()); } in end()
1036 return const_iterator(iterator(elements_->begin())); in begin()
1039 return const_iterator(iterator(elements_->end())); in end()
1045 size_type size() const { return elements_->size(); } in size()
1050 value_type** value = &(*elements_)[key];
1076 return const_iterator(iterator(elements_->find(key))); in find()
1078 iterator find(const key_type& key) { return iterator(elements_->find(key)); } in find()
[all …]
/external/protobuf/js/binary/
Ddecoder.js76 this.elements_ = null;
104 this.elements_ = opt_elements || null;
107 this.atEnd_ = !this.decoder_ && !this.elements_;
160 this.elements_ = null;
200 } else if (this.elements_) {
201 if (this.cursor_ == this.elements_.length) {
205 this.nextValue_ = this.elements_[this.cursor_++];
/external/openscreen/discovery/mdns/
Dmdns_querier.cc78 bool IsEmpty() { return !elements_.any(); } in IsEmpty()
84 bool was_set = elements_.test(bit); in Insert()
85 elements_.set(bit); in Insert()
107 elements_.reset(); in Remove()
112 bool was_set = elements_.test(bit); in Remove()
113 elements_.reset(bit); in Remove()
119 if (elements_.test(0)) { in GetTypes()
130 if (elements_.test(cast_int)) { in GetTypes()
138 std::bitset<64> elements_; member in openscreen::discovery::__anon18feac030111::DnsTypeBitSet
/external/llvm-project/flang/lib/Evaluate/
Dfold-implementation.h712 auto n{static_cast<ConstantSubscript>(elements_.size())}; in FoldArray()
715 std::move(elements_), ConstantSubscripts{n}}}; in FoldArray()
720 *lengthValue, std::move(elements_), ConstantSubscripts{n}}}; in FoldArray()
724 Constant<T>{std::move(elements_), ConstantSubscripts{n}}}; in FoldArray()
739 elements_.emplace_back(c->At(index)); in FoldArray()
792 std::vector<Scalar<T>> elements_; variable