Home
last modified time | relevance | path

Searched refs:picker_ (Results 1 – 7 of 7) sorted by relevance

/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/lb_policy/xds/
Dxds_cluster_impl.cc196 : picker_(std::move(picker)) {} in RefCountedPicker()
197 PickResult Pick(PickArgs args) { return picker_->Pick(args); } in Pick()
200 std::unique_ptr<SubchannelPicker> picker_; member in grpc_core::__anonff2650950111::XdsClusterImplLb::RefCountedPicker
217 RefCountedPtr<RefCountedPicker> picker_; member in grpc_core::__anonff2650950111::XdsClusterImplLb::Picker
272 RefCountedPtr<RefCountedPicker> picker_; member in grpc_core::__anonff2650950111::XdsClusterImplLb
287 picker_(std::move(picker)) { in Picker()
317 if (picker_ == nullptr) { // Should never happen. in Pick()
328 PickResult result = picker_->Pick(args); in Pick()
410 picker_.reset(); in ShutdownLocked()
464 auto drop_picker = absl::make_unique<Picker>(this, picker_); in MaybeUpdatePickerLocked()
[all …]
Dxds_cluster_manager.cc86 : name_(std::move(name)), picker_(std::move(picker)) {} in ChildPickerWrapper()
87 PickResult Pick(PickArgs args) { return picker_->Pick(args); } in Pick()
93 std::unique_ptr<SubchannelPicker> picker_; member in grpc_core::__anon99c9fe3e0111::XdsClusterManagerLb::ChildPickerWrapper
/external/tensorflow/tensorflow/core/kernels/
Drange_sampler.cc181 : RangeSampler(range), picker_(range) { in ThreadUnsafeUnigramSampler()
186 return picker_.Pick(rnd); in Sample()
190 return static_cast<float>(picker_.get_weight(value)) / picker_.total_weight(); in Probability()
195 kint32max - picker_.total_weight()); in Update()
198 picker_.set_weight(value, picker_.get_weight(value) + 1); in Update()
Drange_sampler.h177 random::WeightedPicker picker_;
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/lb_policy/priority/
Dpriority.cc134 : picker_(std::move(picker)) {} in RefCountedPicker()
135 PickResult Pick(PickArgs args) { return picker_->Pick(args); } in Pick()
138 std::unique_ptr<SubchannelPicker> picker_; member in grpc_core::__anon1a946ba90111::PriorityLb::ChildPriority::RefCountedPicker
145 : picker_(std::move(picker)) {} in RefCountedPickerWrapper()
146 PickResult Pick(PickArgs args) override { return picker_->Pick(args); } in Pick()
149 RefCountedPtr<RefCountedPicker> picker_; member in grpc_core::__anon1a946ba90111::PriorityLb::ChildPriority::RefCountedPickerWrapper
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/lb_policy/weighted_target/
Dweighted_target.cc89 : picker_(std::move(picker)) {} in ChildPickerWrapper()
90 PickResult Pick(PickArgs args) { return picker_->Pick(args); } in Pick()
93 std::unique_ptr<SubchannelPicker> picker_; member in grpc_core::__anon28d8a0b30111::WeightedTargetLb::ChildPickerWrapper
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/
Dclient_channel.cc180 return picker_.get(); in picker()
352 std::unique_ptr<LoadBalancingPolicy::SubchannelPicker> picker_; member in grpc_core::__anon983758c10111::ChannelData
2441 picker_.swap(picker); in UpdateStateAndPickerLocked()
2443 if (picker_ == nullptr || state == GRPC_CHANNEL_SHUTDOWN) { in UpdateStateAndPickerLocked()
2469 picker_->Pick(LoadBalancingPolicy::PickArgs()); in DoPingLocked()