Home
last modified time | relevance | path

Searched refs:num_elements_ (Results 1 – 17 of 17) sorted by relevance

/external/tensorflow/tensorflow/contrib/nearest_neighbor/kernels/
Dheap.h50 num_elements_ -= 1; in ExtractMin()
51 v_[0] = v_[num_elements_]; in ExtractMin()
55 bool IsEmpty() { return num_elements_ == 0; } in IsEmpty()
62 if (v_.size() == static_cast<size_t>(num_elements_)) { in InsertUnsorted()
65 v_[num_elements_].key = key; in InsertUnsorted()
66 v_[num_elements_].data = data; in InsertUnsorted()
68 num_elements_ += 1; in InsertUnsorted()
72 if (v_.size() == static_cast<size_t>(num_elements_)) { in Insert()
75 v_[num_elements_].key = key; in Insert()
76 v_[num_elements_].data = data; in Insert()
[all …]
/external/webrtc/webrtc/common_audio/
Dswap_queue.h111 num_elements_ = 0; in Clear()
127 if (num_elements_ == queue_.size()) { in Insert()
139 ++num_elements_; in Insert()
142 RTC_DCHECK_LE(num_elements_, queue_.size()); in Insert()
160 if (num_elements_ == 0) { in Remove()
172 --num_elements_; in Remove()
175 RTC_DCHECK_LE(num_elements_, queue_.size()); in Remove()
200 size_t num_elements_ GUARDED_BY(crit_queue_) = 0;
/external/tensorflow/tensorflow/core/framework/
Dtensor_shape_test.cc282 int64 num_elements() const { return num_elements_; } in num_elements()
321 int64 num_elements_; member in tensorflow::__anone850e9110111::TensorShapeOld
384 num_elements_ = 1; in TensorShapeOld()
392 num_elements_ = 1; in TensorShapeOld()
398 TensorShapeOld::TensorShapeOld() : num_elements_(1) {} in TensorShapeOld()
402 num_elements_ = 1; in Clear()
408 num_elements_ *= size; in AddDim()
409 CHECK_LE(0, num_elements_); in AddDim()
410 CHECK_LE(num_elements_, kMaxElements); in AddDim()
422 num_elements_ *= size; in InsertDim()
[all …]
Dtensor_shape.h69 int64 num_elements() const { return num_elements_; } in num_elements()
144 void set_num_elements(int64 n) { num_elements_ = n; } in set_num_elements()
158 int64 num_elements_; variable
491 num_elements_ = b.num_elements_; in TensorShapeRep()
504 num_elements_ = b.num_elements_; in TensorShapeRep()
519 num_elements_ = b.num_elements_;
534 num_elements_ = b.num_elements_;
Dmodel.h169 return num_elements_; in num_elements()
184 num_elements_++; in record_element()
254 result->num_elements_ = num_elements_; in Snapshot()
270 if (num_elements_ == 0) { in NanosPerElementLocked()
274 static_cast<double>(num_elements_)); in NanosPerElementLocked()
311 int64 num_elements_ GUARDED_BY(mu_) = 0;
Dmodel.cc267 if (num_elements_ == 0 || inputs_.empty() || in OutputTimeLocked()
275 static_cast<double>(num_elements_); in OutputTimeLocked()
288 if (inputs_.empty() || num_elements_ == 0) { in ProcessingTimeLocked()
295 static_cast<double>(num_elements_); in ProcessingTimeLocked()
/external/libvpx/libvpx/test/
Dbuffer.h34 stride_(0), raw_size_(0), num_elements_(0), raw_buffer_(NULL) {} in Buffer()
41 padding_value_(0), stride_(0), raw_size_(0), num_elements_(0), in Buffer()
48 raw_size_(0), num_elements_(0), raw_buffer_(NULL) {} in Buffer()
54 stride_(0), raw_size_(0), num_elements_(0), raw_buffer_(NULL) {} in Buffer()
114 num_elements_ = stride_ * (top_padding_ + height_ + bottom_padding_); in Init()
115 raw_size_ = num_elements_ * sizeof(T); in Init()
127 raw_buffer_ = new (std::nothrow) T[num_elements_]; in Init()
147 int num_elements_; variable
283 for (int i = 0; i < num_elements_; ++i) { in SetPadding()
/external/tensorflow/tensorflow/lite/testing/nnapi_tflite_zip_tests/
Dtflite_driver.cc74 num_elements_ = 0; in Expectation()
80 num_elements_ = values.size(); in SetData()
81 data_.raw = new char[num_elements_ * sizeof(T)]; in SetData()
96 if (tensor_size != num_elements_) { in TypedCheck()
97 std::cerr << "Expected a tensor with " << num_elements_ in TypedCheck()
128 size_t num_elements_; member in tflite::testing::TfLiteDriver::Expectation
/external/tensorflow/tensorflow/lite/testing/
Dtflite_driver.cc72 num_elements_ = 0; in Expectation()
78 num_elements_ = values.size(); in SetData()
79 data_.raw = new char[num_elements_ * sizeof(T)]; in SetData()
94 if (tensor_size != num_elements_) { in TypedCheck()
95 std::cerr << "Expected a tensor with " << num_elements_ in TypedCheck()
126 size_t num_elements_; member in tflite::testing::TfLiteDriver::Expectation
/external/tensorflow/tensorflow/core/kernels/data/
Dshuffle_dataset_op.cc79 num_elements_(0), in Iterator()
99 while (input_impl_ && num_elements_ < this->dataset()->buffer_size_) { in GetNextInternal()
104 << num_elements_ << " of " in GetNextInternal()
135 num_elements_++; in GetNextInternal()
153 if (num_elements_ > 0) { in GetNextInternal()
173 num_elements_--; in GetNextInternal()
218 num_elements_)); in SaveInternal()
268 &num_elements_)); in RestoreInternal()
331 int64 num_elements_ GUARDED_BY(mu_);
Dsparse_tensor_slice_dataset_op.cc86 num_elements_(params.dataset->sparse_tensor_.shape()[0]), in Iterator()
100 if (i_ == num_elements_) { in GetNextInternal()
198 const int64 num_elements_; member in tensorflow::data::__anon2da6f3700111::Dataset::Iterator
/external/tensorflow/tensorflow/core/kernels/
Dscoped_allocator_ops.cc43 num_elements_ = num_bytes / DataTypeSize(dtype_); in ScopedAllocatorOp()
60 context->allocate_output(0, {num_elements_}, &backing_tensor, attr); in Compute()
63 << num_elements_ << " buffer " << DMAHelper::buffer(backing_tensor) in Compute()
77 int64 num_elements_; member in tensorflow::ScopedAllocatorOp
Dlist_kernels.h87 OP_REQUIRES_OK(c, c->GetAttr("num_elements", &num_elements_)); in TensorListStack()
98 if (num_elements_ != -1) { in Compute()
99 OP_REQUIRES(c, tensor_list->tensors.size() == num_elements_, in Compute()
101 "Operation expected a list with ", num_elements_, in Compute()
178 int num_elements_;
/external/protobuf/src/google/protobuf/
Dmap.h716 num_elements_(0), in InnerMap()
932 num_elements_ = 0; in clear()
941 size_type size() const { return num_elements_; } in size()
954 if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) { in insert()
961 ++num_elements_; in insert()
973 if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) { in insert()
981 ++num_elements_; in insert()
1013 --num_elements_; in erase()
1339 size_type num_elements_; variable
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tfe_src.cc980 num_elements_ = PyObject_GetAttrString(py_vspace_, "num_elements_fn"); in Initialize()
981 if (num_elements_ == nullptr) { in Initialize()
1004 Py_XDECREF(num_elements_); in ~PyVSpace()
1019 PyObject* result = PyEval_CallObject(num_elements_, arglist); in NumElements()
1140 PyObject* num_elements_; member in PyVSpace
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googlemock/include/gmock/
Dgmock-matchers.h3266 : num_elements_(num_elements),
3268 matched_(num_elements_* num_matchers_, 0) {
3271 size_t LhsSize() const { return num_elements_; }
3294 size_t num_elements_;
/external/googletest/googlemock/include/gmock/
Dgmock-matchers.h2842 : num_elements_(num_elements),
2844 matched_(num_elements_* num_matchers_, 0) {
2847 size_t LhsSize() const { return num_elements_; }
2870 size_t num_elements_;