Home
last modified time | relevance | path

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

/third_party/mindspore/mindspore/core/base/
Dbase_ref.cc92 if (elements_ == other.elements_ || this == &other) { in operator =()
95 elements_ = other.elements_; in operator =()
103 for (auto &attr : elements_) { in ToString()
117 if (elements_ == other.elements_ || this == &other) { in operator =()
120 elements_ = other.elements_; in operator =()
128 for (auto &attr : elements_) { in ToString()
148 if (elements_.size() != other.elements_.size()) { in operator ==()
151 for (size_t i = 0; i < elements_.size(); ++i) { in operator ==()
152 if (elements_[i] != other.elements_[i]) { in operator ==()
167 if (elements_.size() != other.elements_.size()) { in operator ==()
[all …]
Dbase_ref.h232 explicit VectorRef(const std::vector<BaseRef> &elements) : elements_(elements) {} in VectorRef()
233 VectorRef(const const_iterator &begin, const const_iterator &end) : elements_(begin, end) {} in VectorRef()
240 std::shared_ptr<Base> copy() const override { return std::make_shared<VectorRef>(elements_); } in copy()
242 bool empty() const { return (elements_.size() == 0); } in empty()
244 std::size_t size() const { return elements_.size(); } in size()
251 return elements_[dim]; in MS_DECLARE_PARENT()
258 return elements_[dim];
263 std::vector<BaseRef> &elements() { return elements_; } in elements()
264 void clear() { elements_.clear(); } in clear()
269 void push_back(const BaseRef &value) { elements_.push_back(value); } in push_back()
[all …]
/third_party/mindspore/mindspore/core/ir/dtype/
Dcontainer.cc64 (void)std::transform(elements_.begin(), elements_.end(), std::back_inserter(elements), in DeepCopy()
75 return elements_[dim]; in operator []()
83 if (elements_.size() != other_list.elements_.size()) { in operator ==()
86 for (size_t i = 0; i < elements_.size(); ++i) { in operator ==()
87 if (*elements_[i] != *other_list.elements_[i]) { in operator ==()
104 buffer << DumpTypeVector(elements_, is_dumptext); in DumpContent()
150 (void)std::transform(elements_.begin(), elements_.end(), std::back_inserter(elements), in DeepCopy()
162 if (elements_.size() != other_tuple.elements_.size()) { in operator ==()
165 for (size_t i = 0; i < elements_.size(); ++i) { in operator ==()
166 if (*elements_[i] != *other_tuple.elements_[i]) { in operator ==()
[all …]
Dcontainer.h44 : Object(kObjectTypeList, false), elements_(objs.begin(), objs.end()) {} in List()
46 explicit List(const TypePtrList &obj) : Object(kObjectTypeList, false), elements_(obj) {} in List()
55 std::size_t size() const { return elements_.size(); } in size()
56 TypePtrList elements() const { return elements_; } in elements()
63 TypePtrList elements_; variable
105 : Object(kObjectTypeTuple, false), elements_(objs.begin(), objs.end()) {} in Tuple()
108 …explicit Tuple(const TypePtrList &objs) : Object(kObjectTypeTuple, false), elements_(objs.begin(),… in Tuple()
122 TypePtrList elements() const { return elements_; } in elements()
123 std::size_t size() const { return elements_.size(); } in size()
127 TypePtrList elements_; variable
/third_party/boost/libs/ptr_container/test/
Dincomplete_type_test.cpp36 composite_t elements_; member in Composite
41 Composite( const Composite& r ) : elements_( r.elements_.clone() ) in Composite()
64 elements_.push_back( c ); in add()
72 elements_.push_back( new_clone( c ) ); in add()
77 elements_.erase( where ); in remove()
86 for( const_iterator i = elements_.begin(); i != elements_.end(); ++i ) in size()
94 for( iterator i = elements_.begin(); i != elements_.end(); ++i ) in foo()
/third_party/mindspore/mindspore/core/ir/
Dvalue.cc31 return elements_[dim]; in operator []()
36 (void)elements_.erase(elements_.begin() + SizeToInt(idx)); in erase()
156 if (other.elements_.size() != elements_.size()) { in operator ==()
159 return std::equal(elements_.begin(), elements_.end(), other.elements_.begin(), in operator ==()
166 for (auto &attr : elements_) { in ToString()
180 for (size_t i = 0; i < elements_.size(); ++i) { in DumpText()
181 MS_EXCEPTION_IF_NULL(elements_[i]); in DumpText()
182 oss << (i > 0 ? ", " : "") << elements_[i]->DumpText(); in DumpText()
Dvalue_extends.cc46 …(void)std::transform(elements_.begin(), elements_.end(), std::back_inserter(a_list), [](const Valu… in ToAbstract()
55 …(void)std::transform(elements_.begin(), elements_.end(), std::back_inserter(a_list), [](const Valu… in ToAbstract()
Dvalue.h39 explicit ValueSequeue(const ValuePtrList &elements) : elements_(elements) { in ValueSequeue()
48 …ValueSequeue(const std::initializer_list<ValuePtr> &elements) : elements_(elements.begin(), elemen… in ValueSequeue()
50 (void)std::transform(elements_.begin(), elements_.end(), std::back_inserter(t_list), in ValueSequeue()
57 …std::size_t hash() const override { return hash_combine(tid(), std::hash<std::size_t>{}(elements_.… in MS_DECLARE_PARENT()
58 std::size_t size() const { return elements_.size(); } in size()
61 const ValuePtrList &value() const { return elements_; } in value()
68 ValuePtrList elements_;
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/nn/
Dcombine_momentum_gpu_kernel.h50 FusedScaleMomentum(elements_[i], scale, variable, acc, lr, grad, mom, stream); in Launch()
59 …FusedWeightDecayScaleMomentum(elements_[i], weight_decay, scale, variable, acc, lr, grad, mom, str… in Launch()
84 elements_.push_back(element_num_); in Init()
106 std::vector<size_t> elements_; variable
/third_party/mindspore/mindspore/core/abstract/
Dabstract_value.cc269 return elements_[dim]; in operator []()
275 size_t size = elements_.size(); in ToString()
276 for (const auto &ele : elements_) { in ToString()
289 for (const auto &ele : elements_) { in ElementsType()
299 for (const auto &ele : elements_) { in ElementsShape()
309 for (const auto &ele : elements_) { in ElementsClone()
319 for (const auto &ele : elements_) { in ElementsBroaden()
329 for (const auto &ele : elements_) { in ElementsPartialBroaden()
340 for (const auto &ele : elements_) { in ElementsBuildValue()
361 auto joined_list = AbstractJoin(elements_, other_sequeue->elements_); in ElementsJoin()
[all …]
Dabstract_value.h364 explicit AbstractSequeue(const AbstractBasePtrList &elements) : elements_(elements) {} in AbstractSequeue()
380 std::size_t size() const { return elements_.size(); } in size()
381 const AbstractBasePtrList &elements() const { return elements_; } in elements()
389 AbstractBasePtrList elements_;
/third_party/cef/libcef/common/
Drequest_impl.cc890 return elements_.size(); in GetElementCount()
895 elements = elements_; in GetElements()
902 ElementVector::iterator it = elements_.begin(); in RemoveElement()
903 for (; it != elements_.end(); ++it) { in RemoveElement()
905 elements_.erase(it); in RemoveElement()
921 ElementVector::const_iterator it = elements_.begin(); in AddElement()
922 for (; it != elements_.end(); ++it) { in AddElement()
930 elements_.push_back(element); in AddElement()
940 elements_.clear(); in RemoveElements()
964 for (const auto& element : elements_) { in GetBody()
[all …]
Drequest_impl.h214 ElementVector elements_; variable
/third_party/protobuf/src/google/protobuf/
Dmap.h348 delete elements_;
353 void Init() { elements_ = Arena::CreateMessage<InnerMap>(arena_, 0); }
1103 iterator begin() { return iterator(elements_->begin()); }
1104 iterator end() { return iterator(elements_->end()); }
1106 return const_iterator(iterator(elements_->begin()));
1109 return const_iterator(iterator(elements_->end()));
1115 size_type size() const { return elements_->size(); }
1119 T& operator[](const key_type& key) { return (*elements_)[key].second; }
1143 return const_iterator(iterator(elements_->find(key)));
1147 return iterator(elements_->find(key));
[all …]
/third_party/boost/boost/spirit/home/qi/operator/
Dalternative.hpp68 alternative(Elements const& elements_) in alternative()
69 : elements(elements_) {} in alternative()
Dsequential_or.hpp63 sequential_or(Elements const& elements_) in sequential_or()
64 : elements(elements_) {} in sequential_or()
Dpermutation.hpp66 permutation(Elements const& elements_) in permutation()
67 : elements(elements_) {} in permutation()
Dsequence_base.hpp63 sequence_base(Elements const& elements_) in sequence_base()
64 : elements(elements_) {} in sequence_base()
/third_party/boost/libs/stl_interfaces/test/
Darray.cpp39 iterator begin() noexcept { return elements_; } in begin()
40 iterator end() noexcept { return elements_ + N; } in end()
47 T * element = elements_; in swap()
59 T elements_[N]; member
/third_party/boost/boost/spirit/repository/home/qi/operator/
Dkeywords.hpp207 keywords(Elements const& elements_) : in keywords()
208 elements(elements_) in keywords()
/third_party/mindspore/mindspore/ccsrc/vm/
Dbackend.cc639 …:transform(output_tensors.begin(), output_tensors.end(), std::back_inserter(op_outputs->elements_), in RunControlOperator()
/third_party/chromium/patch/
D0001-cve.patch5308 return std::move(elements_);
5317 - for (auto& element : elements_) {
5329 if (!elements_.IsEmpty() && elements_.back()->is_bytes()) {
5333 const auto& bytes_element = elements_.back()->get_bytes();
5381 return elements_;
5386 Vector<mojom::blink::DataElementPtr> elements_;
5393 + // `elements_` to actually create a blob, `last_bytes_provider_` should be