Home
last modified time | relevance | path

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

/external/zstd/contrib/pzstd/utils/
DResourcePool.h42 std::vector<T*> resources_; variable
61 if (!resources_.empty()) { in get()
62 UniquePtr resource{resources_.back(), Deleter{*this}}; in get()
63 resources_.pop_back(); in get()
74 for (const auto resource : resources_) { in ~ResourcePool()
88 pool_->resources_.push_back(resource); in operator()
/external/webrtc/call/adaptation/
Dresource_adaptation_processor.cc78 resources_(), in ResourceAdaptationProcessor()
88 RTC_DCHECK(resources_.empty()) in ~ResourceAdaptationProcessor()
131 RTC_DCHECK(absl::c_find(resources_, resource) == resources_.end()) in AddResource()
133 resources_.push_back(resource); in AddResource()
141 return resources_; in GetResources()
151 auto it = absl::c_find(resources_, resource); in RemoveResource()
152 RTC_DCHECK(it != resources_.end()) << "Resource \"" << resource->Name() in RemoveResource()
154 resources_.erase(it); in RemoveResource()
209 if (absl::c_find(resources_, resource) == resources_.end()) { in OnResourceUsageStateMeasured()
Dresource_adaptation_processor.h153 std::vector<rtc::scoped_refptr<Resource>> resources_
/external/libtextclassifier/native/utils/
Dresources.cc64 if (resources_ == nullptr || resources_->resource_entry() == nullptr) { in FindResource()
69 resources_->resource_entry()->LookupByKey(resource_name.data()); in FindResource()
90 locales[user_locale], resources_->locale()->Get(locale_id)); in BestResourceForLocales()
Dresources.h32 explicit Resources(const ResourcePool* resources) : resources_(resources) {} in Resources()
63 const ResourcePool* resources_; variable
/external/libtextclassifier/native/utils/intents/
Dintent-generator.h75 resources_(Resources(resources)), in IntentGenerator()
81 const Resources resources_; variable
Dintent-generator-test-lib.cc122 resources_( in IntentGeneratorTest()
127 const ResourcePool* resources_; member in libtextclassifier3::__anon60bbdd5d0111::IntentGeneratorTest
136 /*resources=*/resources_, in TEST_F()
159 /*resources=*/resources_, jni_cache_); in TEST_F()
185 /*resources=*/resources_, jni_cache_); in TEST_F()
Dintent-generator.cc196 resources_, jni_cache_.get(), context, in GenerateIntents()
226 resources_, jni_cache_.get(), context, in GenerateIntents()
Djni-lua.h83 const Resources& resources_; variable
Djni-lua.cc50 resources_(resources), in JniLuaEnvironment()
388 if (!resources_.GetResourceContent(device_locales_, resource_name, in LookupModelStringResource()
/external/tensorflow/tensorflow/compiler/jit/kernels/
Dxla_ops.h63 const std::vector<int> resources_; variable
99 const std::vector<int> resources_; variable
Dxla_ops.cc159 resources_(resources), in XlaLocalLaunchBase()
232 inputs, resources_, &variable_infos)); in Compute()
243 for (int i = 0; i < resources_.size(); i++) { in Compute()
244 resource_var_ptrs[resources_[i]] = variable_infos[i].var()->tensor(); in Compute()
364 resources_(ResourcesVector(ctx)), in XlaCompileOp()
392 inputs, resources_, &variable_infos)); in Compute()
402 OP_REQUIRES_OK(ctx, SnapshotResourceVariables(ctx, resources_, in Compute()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_context.h81 return resources_; in resources()
124 std::vector<std::unique_ptr<XlaResource>> resources_; variable
Dxla_context.cc81 resources_.push_back(std::move(resource)); in AddResource()
82 return resources_.back().get(); in AddResource()
/external/webrtc/video/adaptation/
Dvideo_stream_encoder_resource_manager.cc361 RTC_DCHECK(absl::c_find_if(resources_, in MapResourceToReason()
364 }) == resources_.end()) in MapResourceToReason()
366 resources_.emplace_back(resource, reason); in MapResourceToReason()
373 for (auto const& resource_and_reason : resources_) { in MappedResources()
566 absl::c_find_if(resources_, [&resource](const ResourceAndReason& r) { in GetReasonFromResource()
569 RTC_DCHECK(registered_resource != resources_.end()) in GetReasonFromResource()
Dvideo_stream_encoder_resource_manager.h281 std::vector<ResourceAndReason> resources_ RTC_GUARDED_BY(&resource_lock_);
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dresource_op_lifting.cc245 auto& GetResources() { return resources_; } in GetResources()
249 return resources_.find(resource) != resources_.end(); in Contains()
254 resources_.erase(resource); in DropResource()
269 bool NeedsLifting() const { return !resources_.empty(); } in NeedsLifting()
340 llvm::MapVector<Value, ResourceInfo> resources_; member in mlir::__anon1f2fad2f0111::RegionResourceHoister
440 resources_.insert({resource, info}); in Analyze()
473 ResourceInfo& info = resources_[resource]; in ReplaceResourceLoads()
500 const ResourceInfo& info = resources_[resource]; in AppendResourceStoreValueToReturn()
515 int result_index = resources_[resource].result_index; in AppendResourceStoreValueToReturn()
549 ResourceInfo& info = resources_[resource]; in ReplaceOpWithNewOp()
/external/tensorflow/tensorflow/core/framework/
Dresource_mgr.h506 std::vector<Tensor> resources_; variable
866 resources_.resize(n);
877 for (size_t i = 0; i < resources_.size(); ++i) {
879 &resources_[i], attr));
882 resources_[i].template scalar<ResourceHandle>()() = h;
887 for (size_t i = 0; i < resources_.size(); ++i) {
888 ctx->set_output(i, resources_[i]);
/external/rust/crates/grpcio-sys/grpc/src/cpp/server/
Dserver_cc.cc434 resources_(false) { in CallData()
451 resources_ = resources; in Run()
463 auto* handler = resources_ ? method_->handler() in Run()
487 auto* handler = resources_ ? method_->handler() in ContinueRunAfterInterception()
517 bool resources_; member in grpc::Server::SyncRequest::CallData
/external/tensorflow/tensorflow/lite/core/
Dsubgraph.h184 resource::ResourceMap& resources() { return *resources_; } in resources()
742 resource::ResourceMap* resources_ = nullptr; variable
Dsubgraph.cc218 resources_(resources) { in Subgraph()
/external/tensorflow/tensorflow/lite/
Dinterpreter.cc250 &subgraphs_, &resources_); in AddSubgraphs()
Dinterpreter.h762 resource::ResourceMap resources_; variable
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmGraphicsShaderTestUtil.hpp295 const GraphicsResources& resources_,
DvktSpvAsmGraphicsShaderTestUtil.cpp260 const GraphicsResources& resources_, in InstanceContext() argument
273 , resources (resources_) in InstanceContext()