/third_party/mindspore/mindspore/ccsrc/cxx_api/ |
D | context.cc | 57 Context::Context() : data_(std::make_shared<Data>()) {} in Context() 78 MS_EXCEPTION_IF_NULL(data_); in SetThreadNum() 79 data_->thread_num = thread_num; in SetThreadNum() 82 MS_EXCEPTION_IF_NULL(data_); in GetThreadNum() 83 return data_->thread_num; in GetThreadNum() 87 MS_EXCEPTION_IF_NULL(data_); in SetEnableParallel() 88 data_->enable_parallel_ = is_parallel; in SetEnableParallel() 92 MS_EXCEPTION_IF_NULL(data_); in GetEnableParallel() 93 return data_->enable_parallel_; in GetEnableParallel() 97 MS_EXCEPTION_IF_NULL(data_); in SetThreadAffinity() [all …]
|
/third_party/mindspore/mindspore/lite/src/cxx_api/ |
D | context.cc | 44 Context::Context() : data_(std::shared_ptr<Data>(new (std::nothrow) Data())) {} in Context() 66 if (data_ == nullptr) { in SetThreadNum() 70 data_->thread_num = thread_num; in SetThreadNum() 74 if (data_ == nullptr) { in GetThreadNum() 78 return data_->thread_num; in GetThreadNum() 82 if (data_ == nullptr) { in SetEnableParallel() 86 data_->enable_parallel_ = is_parallel; in SetEnableParallel() 90 if (data_ == nullptr) { in GetEnableParallel() 95 return data_->enable_parallel_; in GetEnableParallel() 99 if (data_ == nullptr) { in SetThreadAffinity() [all …]
|
/third_party/mindspore/mindspore/core/utils/ |
D | compact_set.h | 36 auto iter = std::find(data_.begin(), data_.end(), e); in add() 37 if (iter == data_.end()) { in add() 38 data_.emplace_back(std::move(e)); in add() 43 auto iter = std::find(data_.begin(), data_.end(), e); in insert() 44 if (iter == data_.end()) { in insert() 45 data_.push_back(e); in insert() 49 iterator find(const T &e) { return std::find(data_.begin(), data_.end(), e); } in find() 51 const_iterator find(const T &e) const { return std::find(data_.begin(), data_.end(), e); } in find() 53 bool contains(const T &e) const { return (find(e) != data_.end()); } in contains() 56 auto iter = std::find(data_.begin(), data_.end(), e); in erase() [all …]
|
D | status.cc | 35 Status::Status() : data_(std::make_shared<Data>()) {} in Status() 37 Status::Status(enum StatusCode status_code, const std::vector<char> &status_msg) : data_(std::make_… in Status() 38 if (data_ == nullptr) { in Status() 42 data_->err_description = CharToString(status_msg); in Status() 43 data_->status_msg = CharToString(status_msg); in Status() 44 data_->status_code = status_code; in Status() 48 : data_(std::make_shared<Data>()) { in Status() 49 if (data_ == nullptr) { in Status() 52 data_->status_code = code; in Status() 53 data_->line_of_code = line_of_code; in Status() [all …]
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/ |
D | audio.cc | 56 : data_(std::make_shared<Data>(sample_rate, central_freq, Q)) {} in AllpassBiquad() 59 …return std::make_shared<AllpassBiquadOperation>(data_->sample_rate_, data_->central_freq_, data_->… in Parse() 73 : data_(std::make_shared<Data>(stype, ref_value, amin, top_db)) {} in AmplitudeToDB() 76 …return std::make_shared<AmplitudeToDBOperation>(data_->stype_, data_->ref_value_, data_->amin_, da… in Parse() 94 : data_(std::make_shared<Data>(sample_rate, central_freq, Q, noise)) {} in BandBiquad() 97 …return std::make_shared<BandBiquadOperation>(data_->sample_rate_, data_->central_freq_, data_->Q_,… in Parse() 111 : data_(std::make_shared<Data>(sample_rate, central_freq, Q, const_skirt_gain)) {} in BandpassBiquad() 114 …return std::make_shared<BandpassBiquadOperation>(data_->sample_rate_, data_->central_freq_, data_-… in Parse() 115 data_->const_skirt_gain_); in Parse() 128 : data_(std::make_shared<Data>(sample_rate, central_freq, Q)) {} in BandrejectBiquad() [all …]
|
D | vision.cc | 115 … : data_(std::make_shared<Data>(degrees, translation, scale, shear, interpolation, fill_value)) {} in Affine() 118 …return std::make_shared<AffineOperation>(data_->degrees_, data_->translation_, data_->scale_, data… in Parse() 119 data_->interpolation_, data_->fill_value_); in Parse() 130 AdjustGamma::AdjustGamma(float gamma, float gain) : data_(std::make_shared<Data>(gamma, gain)) {} in AdjustGamma() 133 return std::make_shared<AdjustGammaOperation>(data_->gamma_, data_->gain_); in Parse() 144 : data_(std::make_shared<Data>(cutoff, ignore)) {} in AutoContrast() 147 return std::make_shared<AutoContrastOperation>(data_->cutoff_, data_->ignore_); in Parse() 156 BoundingBoxAugment::BoundingBoxAugment(TensorTransform *transform, float ratio) : data_(std::make_s… in BoundingBoxAugment() 157 data_->transform_ = transform ? transform->Parse() : nullptr; in BoundingBoxAugment() 158 data_->ratio_ = ratio; in BoundingBoxAugment() [all …]
|
D | text.cc | 61 …: data_(std::make_shared<Data>(lower_case, keep_whitespace, normalize_form, preserve_unused_token,… in BasicTokenizer() 64 …return std::make_shared<BasicTokenizerOperation>(data_->lower_case_, data_->keep_whitespace_, data… in Parse() 65 … data_->preserve_unused_token_, data_->with_offsets_); in Parse() 97 …: data_(std::make_shared<Data>(vocab, suffix_indicator, max_bytes_per_token, unknown_token, lower_… in BertTokenizer() 102 …data_->vocab_, data_->suffix_indicator_, data_->max_bytes_per_token_, data_->unknown_token_, data_… in Parse() 103 …data_->keep_whitespace_, data_->normalize_form_, data_->preserve_unused_token_, data_->with_offset… in Parse() 129 : data_(std::make_shared<Data>(hmm_path, mp_path, mode, with_offsets)) {} in JiebaTokenizer() 133 …std::make_shared<JiebaTokenizerOperation>(data_->hmm_path_, data_->mp_path_, data_->mode_, data_->… in Parse() 134 for (auto &word : data_->words_list_) { in Parse() 155 (void)data_->words_list_.emplace_back(CharToString(word), freq); in AddWordChar() [all …]
|
D | transforms.cc | 40 Compose::Compose(const std::vector<TensorTransform *> &transforms) : data_(std::make_shared<Data>()… in Compose() 41 (void)std::transform(transforms.begin(), transforms.end(), std::back_inserter(data_->transforms_), in Compose() 47 Compose::Compose(const std::vector<std::shared_ptr<TensorTransform>> &transforms) : data_(std::make… in Compose() 48 (void)std::transform(transforms.begin(), transforms.end(), std::back_inserter(data_->transforms_), in Compose() 55 : data_(std::make_shared<Data>()) { in Compose() 56 (void)std::transform(transforms.begin(), transforms.end(), std::back_inserter(data_->transforms_), in Compose() 60 std::shared_ptr<TensorOperation> Compose::Parse() { return std::make_shared<ComposeOperation>(data_… in Parse() 72 : data_(std::make_shared<Data>(axis, prepend, append)) {} in Concatenate() 77 Status rc = Tensor::CreateFromMSTensor(data_->prepend_, &out_prepend); in Parse() 82 rc = Tensor::CreateFromMSTensor(data_->append_, &out_append); in Parse() [all …]
|
/third_party/boost/boost/nowide/ |
D | stackstring.hpp | 43 basic_stackstring() : data_(NULL) in basic_stackstring() 49 explicit basic_stackstring(const input_char* input) : data_(NULL) in basic_stackstring() 55 basic_stackstring(const input_char* begin, const input_char* end) : data_(NULL) in basic_stackstring() 60 basic_stackstring(const basic_stackstring& other) : data_(NULL) in basic_stackstring() 72 data_ = buffer_; in operator =() 73 else if(other.data_) in operator =() 74 data_ = new output_char[len + 1]; in operator =() 77 data_ = NULL; in operator =() 80 std::memcpy(data_, other.data_, sizeof(output_char) * (len + 1)); in operator =() 112 data_ = buffer_; in convert() [all …]
|
/third_party/cef/libcef/common/ |
D | drag_data_impl.cc | 18 : data_(data), read_only_(false) {} in CefDragDataImpl() 23 : data_(data), in CefDragDataImpl() 38 drag_data = new CefDragDataImpl(data_, image_, image_hotspot_); in Clone() 50 return (data_.url.is_valid() && in IsLink() 51 data_.file_contents_content_disposition.empty()); in IsLink() 56 return (!data_.url.is_valid() && in IsFragment() 57 data_.file_contents_content_disposition.empty() && in IsFragment() 58 data_.filenames.empty()); in IsFragment() 63 return (!data_.file_contents_content_disposition.empty() || in IsFile() 64 !data_.filenames.empty()); in IsFile() [all …]
|
/third_party/boost/boost/asio/ip/detail/impl/ |
D | endpoint.ipp | 36 : data_() 38 data_.v4.sin_family = BOOST_ASIO_OS_DEF(AF_INET); 39 data_.v4.sin_port = 0; 40 data_.v4.sin_addr.s_addr = BOOST_ASIO_OS_DEF(INADDR_ANY); 44 : data_() 49 data_.v4.sin_family = BOOST_ASIO_OS_DEF(AF_INET); 50 data_.v4.sin_port = 52 data_.v4.sin_addr.s_addr = BOOST_ASIO_OS_DEF(INADDR_ANY); 56 data_.v6.sin6_family = BOOST_ASIO_OS_DEF(AF_INET6); 57 data_.v6.sin6_port = [all …]
|
/third_party/boost/libs/asio/include/boost/asio/ip/detail/impl/ |
D | endpoint.ipp | 36 : data_() 38 data_.v4.sin_family = BOOST_ASIO_OS_DEF(AF_INET); 39 data_.v4.sin_port = 0; 40 data_.v4.sin_addr.s_addr = BOOST_ASIO_OS_DEF(INADDR_ANY); 44 : data_() 49 data_.v4.sin_family = BOOST_ASIO_OS_DEF(AF_INET); 50 data_.v4.sin_port = 52 data_.v4.sin_addr.s_addr = BOOST_ASIO_OS_DEF(INADDR_ANY); 56 data_.v6.sin6_family = BOOST_ASIO_OS_DEF(AF_INET6); 57 data_.v6.sin6_port = [all …]
|
/third_party/boost/boost/numeric/ublas/tensor/ |
D | tensor.hpp | 145 , data_() in tensor() 163 , data_ (extents_.product()) in tensor() 181 , data_ (extents_.product()) in tensor() 198 , data_ (a) in tensor() 200 if(this->extents_.product() != this->data_.size()) in tensor() 218 , data_ (extents_.product(), i) in tensor() 232 , data_ (v.data_ ) in tensor() 246 , data_ (std::move(v.data_ )) in tensor() 261 , data_ (v.data()) in tensor() 263 if(!data_.empty()){ in tensor() [all …]
|
/third_party/boost/libs/thread/test/sync/futures/ |
D | test_allocator.hpp | 40 int data_; member in test_allocator 55 test_allocator() throw() : data_(-1) {} in test_allocator() 56 explicit test_allocator(int i) throw() : data_(i) {} in test_allocator() 58 : data_(a.data_) {} in test_allocator() 60 : data_(a.data_) {} in test_allocator() 61 ~test_allocator() throw() {data_ = 0;} in ~test_allocator() 84 {return x.data_ == y.data_;} in operator ==() 93 int data_; member in test_allocator 106 test_allocator() throw() : data_(-1) {} in test_allocator() 107 explicit test_allocator(int i) throw() : data_(i) {} in test_allocator() [all …]
|
/third_party/gn/src/base/ |
D | scoped_generic.h | 72 ScopedGeneric() : data_(traits_type::InvalidValue()) {} in ScopedGeneric() 76 explicit ScopedGeneric(const element_type& value) : data_(value) {} in ScopedGeneric() 80 : data_(value, traits) {} in ScopedGeneric() 84 : data_(rvalue.release(), rvalue.get_traits()) {} in ScopedGeneric() 98 if (data_.generic != traits_type::InvalidValue() && data_.generic == value) 101 data_.generic = value; 109 swap(static_cast<Traits&>(data_), static_cast<Traits&>(other.data_)); in swap() 110 swap(data_.generic, other.data_.generic); in swap() 117 element_type old_generic = data_.generic; in release() 118 data_.generic = traits_type::InvalidValue(); in release() [all …]
|
/third_party/flutter/engine/flutter/fml/ |
D | unique_object.h | 47 UniqueObject() : data_(Traits::InvalidValue()) {} in UniqueObject() 48 explicit UniqueObject(const T& value) : data_(value) {} in UniqueObject() 50 UniqueObject(const T& value, const Traits& traits) : data_(value, traits) {} in UniqueObject() 53 : data_(other.release(), other.get_traits()) {} in UniqueObject() 63 FML_CHECK(data_.generic == Traits::InvalidValue() || 64 data_.generic != value); 66 data_.generic = value; 74 swap(static_cast<Traits&>(data_), static_cast<Traits&>(other.data_)); in swap() 75 swap(data_.generic, other.data_.generic); in swap() 82 T old_generic = data_.generic; in release() [all …]
|
/third_party/boost/boost/thread/csbl/ |
D | devector.hpp | 25 vector_type data_; member in boost::csbl::devector 32 { data_.push_back(boost::forward<U>(x)); } in BOOST_COPYABLE_AND_MOVABLE() 42 : data_(x.data_), in devector() 46 : data_(boost::move(x.data_)), in devector() 54 data_ = x.data_; in operator =() 65 data_ = boost::move(x.data_); in operator =() 71 { return data_.size() == front_index_; } in empty() 74 { return data_.size() - front_index_; } in size() 77 { return data_[front_index_]; } in front() 80 { return data_[front_index_]; } in front() [all …]
|
/third_party/protobuf/src/google/protobuf/ |
D | reflection.h | 74 bool empty() const { return accessor_->IsEmpty(data_); } in empty() 75 int size() const { return accessor_->Size(data_); } in size() 76 T Get(int index) const { return accessor_->template Get<T>(data_, index); } in Get() 86 iterator begin() const { return iterator(data_, accessor_, true); } in begin() 87 iterator end() const { return iterator(data_, accessor_, false); } in end() 93 data_ = reflection->RepeatedFieldData(const_cast<Message*>(&message), field, in RepeatedFieldRef() 99 const void* data_; variable 110 bool empty() const { return accessor_->IsEmpty(data_); } in empty() 111 int size() const { return accessor_->Size(data_); } in size() 112 T Get(int index) const { return accessor_->template Get<T>(data_, index); } in Get() [all …]
|
/third_party/node/src/tracing/ |
D | traced_value.cc | 118 data_ += std::to_string(value); in SetInteger() 123 data_ += DoubleToCString(value); in SetDouble() 128 data_ += value ? "true" : "false"; in SetBoolean() 133 data_ += "null"; in SetNull() 138 data_ += EscapeString(value); in SetString() 143 data_ += '{'; in BeginDictionary() 149 data_ += '['; in BeginArray() 155 data_ += std::to_string(value); in AppendInteger() 160 data_ += DoubleToCString(value); in AppendDouble() 165 data_ += value ? "true" : "false"; in AppendBoolean() [all …]
|
/third_party/boost/libs/thread/test/sync/futures/packaged_task/ |
D | func_ctor_pass.cpp | 67 long data_; member in A 78 explicit A(long i) : data_(i) in A() 81 A(BOOST_THREAD_RV_REF(A) a) : data_(BOOST_THREAD_RV(a).data_) in A() 83 BOOST_THREAD_RV(a).data_ = -1; in A() 88 data_ = BOOST_THREAD_RV(a).data_; in operator =() 89 BOOST_THREAD_RV(a).data_ = -1; in operator =() 93 A(const A& a) : data_(a.data_) in A() 99 data_ = a.data_; in operator =() 110 { return data_;} in operator ()() 112 { return data_ + i + j;} in operator ()() [all …]
|
/third_party/grpc/include/grpcpp/impl/codegen/ |
D | string_ref.h | 51 string_ref() : data_(nullptr), length_(0) {} in string_ref() 53 : data_(other.data_), length_(other.length_) {} in string_ref() 55 data_ = rhs.data_; 61 string_ref(const char* s) : data_(s), length_(strlen(s)) {} in string_ref() 62 string_ref(const char* s, size_t l) : data_(s), length_(l) {} in string_ref() 64 string_ref(const std::string& s) : data_(s.data()), length_(s.length()) {} in string_ref() 67 const_iterator begin() const { return data_; } in begin() 68 const_iterator end() const { return data_ + length_; } in end() 69 const_iterator cbegin() const { return data_; } in cbegin() 70 const_iterator cend() const { return data_ + length_; } in cend() [all …]
|
/third_party/re2/re2/ |
D | stringpiece.cc | 18 memcpy(buf, data_ + pos, ret); in copy() 25 return StringPiece(data_ + pos, n); in substr() 31 const_pointer result = std::search(data_ + pos, data_ + size_, in find() 32 s.data_, s.data_ + s.size_); in find() 33 size_type xpos = result - data_; in find() 39 const_pointer result = std::find(data_ + pos, data_ + size_, c); in find() 40 return result != data_ + size_ ? result - data_ : npos; in find() 47 const_pointer last = data_ + std::min(size_ - s.size_, pos) + s.size_; in rfind() 48 const_pointer result = std::find_end(data_, last, s.data_, s.data_ + s.size_); in rfind() 49 return result != last ? result - data_ : npos; in rfind() [all …]
|
/third_party/boost/libs/unordered/test/helpers/ |
D | list.hpp | 166 data data_; member in test::list 177 list() : data_() {} in list() 179 list(list const& other) : data_() { insert(other.begin(), other.end()); } in list() 182 list(InputIterator i, InputIterator j) : data_() in list() 194 iterator begin() { return iterator(data_.first_); } in begin() 196 const_iterator begin() const { return iterator(data_.first_); } in begin() 198 const_iterator cbegin() const { return iterator(data_.first_); } in cbegin() 209 data_.first_ = new node(v, data_.first_); in push_front() 210 if (!data_.size_) in push_front() 211 data_.last_ptr_ = &(*data_.last_ptr_)->next_; in push_front() [all …]
|
/third_party/mindspore/mindspore/lite/micro/example/mnist_stm32f746/mnist_stm32f746/include/ |
D | lite_utils.h | 363 data_ = nullptr; in Vector() 370 data_ = new (std::nothrow) T[capacity_]; in Vector() 371 if (data_ == nullptr) { in Vector() 380 data_ = new (std::nothrow) T[capacity_]; in Vector() 381 if (data_ == nullptr) { in Vector() 385 data_[i] = value; in Vector() 393 data_ = new (std::nothrow) T[capacity_]; in Vector() 394 if (data_ == nullptr) { in Vector() 398 data_[i] = vec.data_[i]; in Vector() 403 if (data_ != nullptr) { in ~Vector() [all …]
|
/third_party/mindspore/mindspore/lite/include/ |
D | lite_utils.h | 364 data_ = nullptr; in Vector() 371 data_ = new (std::nothrow) T[capacity_]; in Vector() 372 if (data_ == nullptr) { in Vector() 381 data_ = new (std::nothrow) T[capacity_]; in Vector() 382 if (data_ == nullptr) { in Vector() 386 data_[i] = value; in Vector() 394 data_ = new (std::nothrow) T[capacity_]; in Vector() 395 if (data_ == nullptr) { in Vector() 399 data_[i] = vec.data_[i]; in Vector() 404 if (data_ != nullptr) { in ~Vector() [all …]
|