Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/core/kernels/
Drange_sampler_test.cc36 for (int i = 0; i < sampler_->range(); i++) { in CheckProbabilitiesSumToOne()
37 sum += sampler_->Probability(i); in CheckProbabilitiesSumToOne()
42 const int range = sampler_->range(); in CheckHistogram()
48 sampler_->SampleBatch(&rnd, false, absl::MakeSpan(a)); in CheckHistogram()
56 EXPECT_NEAR((h[val] + 0.0) / num_samples, sampler_->Probability(val), in CheckHistogram()
66 sampler_->Update(a); in Update1()
75 sampler_->Update(ArraySlice<int64_t>(a + i, 10 - i)); in Update2()
78 std::unique_ptr<RangeSampler> sampler_; member in tensorflow::__anond2104de80111::RangeSamplerTest
82 sampler_.reset(new UniformSampler(10)); in TEST_F()
84 CHECK_EQ(sampler_->Probability(i), sampler_->Probability(0)); in TEST_F()
[all …]
Dcandidate_sampler_ops.cc52 CHECK(sampler_) << "CandidateSamplerOp did not set sampler_"; in Compute()
55 OP_REQUIRES(context, num_sampled_ <= sampler_->range(), in Compute()
92 sampler_->SampleBatchGetExpectedCount(&random, unique_, sampled_candidate, in Compute()
96 if (sampler_->NeedsUpdates()) { in Compute()
97 sampler_->Update(true_candidate); in Compute()
102 void set_sampler(RangeSampler* sampler) { sampler_.reset(sampler); } in set_sampler()
108 std::unique_ptr<RangeSampler> sampler_; member in tensorflow::BaseCandidateSamplerOp
Dword2vec_kernels.cc258 sampler_ = new random::DistributionSampler(vocab_weights); in NegTrainOp()
261 ~NegTrainOp() override { delete sampler_; } in ~NegTrainOp()
288 OP_REQUIRES(ctx, vocab_size == sampler_->num(), in Compute()
290 " vs. ", sampler_->num())); in Compute()
334 const int sample = sampler_->Sample(&srnd); in Compute()
350 random::DistributionSampler* sampler_ = nullptr; member in tensorflow::NegTrainOp
/external/cronet/net/third_party/quiche/src/quiche/quic/core/congestion_control/
Dbandwidth_sampler_test.cc52 : sampler_(nullptr, /*max_height_tracker_window_length=*/0), in BandwidthSamplerTest()
53 sampler_app_limited_at_start_(sampler_.is_app_limited()), in BandwidthSamplerTest()
61 sampler_.EnableOverestimateAvoidance(); in BandwidthSamplerTest()
66 BandwidthSampler sampler_; member in quic::test::BandwidthSamplerTest
79 sampler_.OnPacketSent(clock_.Now(), QuicPacketNumber(packet_number), bytes, in SendPacketInner()
93 sampler_, QuicPacketNumber(packet_number)); in AckPacketInner()
95 BandwidthSampler::CongestionEventSample sample = sampler_.OnCongestionEvent( in AckPacketInner()
109 sampler_, QuicPacketNumber(packet_number)); in MakeAckedPacket()
116 sampler_, QuicPacketNumber(packet_number))); in MakeLostPacket()
142 BandwidthSampler::CongestionEventSample sample = sampler_.OnCongestionEvent( in OnCongestionEvent()
[all …]
Dbbr_sender.cc68 end_of_app_limited_phase(sender.sampler_.end_of_app_limited_phase()) {} in DebugState()
82 sampler_(unacked_packets, kBandwidthWindowSize), in BbrSender()
161 if (bytes_in_flight == 0 && sampler_.is_app_limited()) { in OnPacketSent()
165 sampler_.OnPacketSent(sent_time, packet_number, bytes, bytes_in_flight, in OnPacketSent()
170 sampler_.OnPacketNeutered(packet_number); in OnPacketNeutered()
225 sampler_.SetMaxAckHeightTrackerWindowLength(2 * kBandwidthWindowSize); in SetFromConfig()
228 sampler_.SetMaxAckHeightTrackerWindowLength(4 * kBandwidthWindowSize); in SetFromConfig()
262 sampler_.EnableOverestimateAvoidance(); in ApplyConnectionOptions()
265 sampler_.SetStartNewAggregationEpochAfterFullRound(true); in ApplyConnectionOptions()
268 sampler_.SetLimitMaxAckHeightTrackerBySendRate(true); in ApplyConnectionOptions()
[all …]
Dbbr_sender.h251 BandwidthSampler sampler_; variable
Dbbr2_sender.cc75 old_sender ? &old_sender->sampler_ : nullptr), in Bbr2Sender()
/external/tensorflow/tensorflow/lite/profiling/
Dmemory_usage_monitor.cc32 : sampler_(std::move(sampler)), in MemoryUsageMonitor()
35 is_supported_ = (sampler_ != nullptr && sampler_->IsSupported()); in MemoryUsageMonitor()
54 const auto mem_info = sampler_->GetMemoryUsage(); in Start()
59 sampler_->SleepFor(sampling_interval_); in Start()
Dmemory_usage_monitor.h82 std::unique_ptr<Sampler> sampler_ = nullptr; variable
/external/deqp-deps/amber/src/vulkan/
Dsampler.h30 VkSampler GetVkSampler() { return sampler_; } in GetVkSampler()
33 VkSampler sampler_ = VK_NULL_HANDLE;
Dsampler.cc109 nullptr, &sampler_) != VK_SUCCESS) { in CreateSampler()
117 if (sampler_ != VK_NULL_HANDLE) { in ~Sampler()
118 device_->GetPtrs()->vkDestroySampler(device_->GetVkDevice(), sampler_, in ~Sampler()
/external/libprotobuf-mutator/src/
Dmutator.cc187 sampler_(random) {} in MutationSampler()
190 const FieldInstance& field() const { return sampler_.selected().field; } in field()
193 Mutation mutation() const { return sampler_.selected().mutation; } in mutation()
279 sampler_.Try(kDefaultMutateWeight, {field, mutation}); in Try()
294 WeightedReservoirSampler<Result, RandomEngine> sampler_; member in protobuf_mutator::__anon7fe8839d0111::MutationSampler
305 sampler_(random) {} in DataSourceSampler()
312 return sampler_.selected(); in field()
315 bool IsEmpty() const { return sampler_.IsEmpty(); } in IsEmpty()
348 sampler_.Try(field_size, source); in SampleImpl()
354 sampler_.Try(1, source); in SampleImpl()
[all …]
/external/deqp-deps/amber/src/
Dbuffer.h93 void SetSampler(Sampler* sampler) { sampler_ = sampler; } in SetSampler()
95 Sampler* GetSampler() const { return sampler_; } in GetSampler()
276 Sampler* sampler_ = nullptr; variable
Dcommand.h565 void SetSampler(Sampler* sampler) { sampler_ = sampler; } in SetSampler()
566 Sampler* GetSampler() const { return sampler_; } in GetSampler()
572 Sampler* sampler_ = nullptr; variable
589 void SetSampler(Sampler* sampler) { sampler_ = sampler; } in SetSampler()
590 Sampler* GetSampler() const { return sampler_; } in GetSampler()
595 Sampler* sampler_ = nullptr;
/external/cronet/base/profiler/
Dstack_sampling_profiler.cc842 sampler_(StackSampler::Create(thread_token, in StackSamplingProfiler()
889 if (!sampler_) in Start()
907 thread_token_.id, params_, &profiling_inactive_, std::move(sampler_), in Start()
927 if (sampler_) in AddAuxUnwinder()
928 sampler_->AddAuxUnwinder(std::move(unwinder)); in AddAuxUnwinder()
Dstack_sampling_profiler.h221 std::unique_ptr<StackSampler> sampler_; variable
/external/vulkan-validation-layers/layers/
Ddescriptor_sets.h392 VkSampler GetSampler() const { return sampler_; } in GetSampler()
395 VkSampler sampler_;
406 VkSampler GetSampler() const { return sampler_; } in GetSampler()
411 VkSampler sampler_;
Ddescriptor_sets.cpp1297 cvdescriptorset::SamplerDescriptor::SamplerDescriptor(const VkSampler *immut) : sampler_(VK_NULL_HA… in SamplerDescriptor()
1301 sampler_ = *immut; in SamplerDescriptor()
1531 sampler_ = update->pImageInfo[index].sampler; in WriteUpdate()
1538 auto update_sampler = static_cast<const SamplerDescriptor *>(src)->sampler_; in CopyUpdate()
1539 sampler_ = update_sampler; in CopyUpdate()
1546 auto sampler_state = dev_data->GetSamplerState(sampler_); in UpdateDrawState()
1552 …: sampler_(VK_NULL_HANDLE), immutable_(false), image_view_(VK_NULL_HANDLE), image_layout_(VK_IMAGE… in ImageSamplerDescriptor()
1556 sampler_ = *immut; in ImageSamplerDescriptor()
1565 sampler_ = image_info.sampler; in WriteUpdate()
1573 auto update_sampler = static_cast<const ImageSamplerDescriptor *>(src)->sampler_; in CopyUpdate()
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/opt/
Dreplace_desc_array_access_using_var_index_test.cpp496 OpName %sampler_ "sampler_" in TEST_F()
/external/swiftshader/third_party/SPIRV-Tools/test/opt/
Dreplace_desc_array_access_using_var_index_test.cpp498 OpName %sampler_ "sampler_" in TEST_F()
/external/deqp-deps/SPIRV-Tools/test/opt/
Dreplace_desc_array_access_using_var_index_test.cpp498 OpName %sampler_ "sampler_" in TEST_F()
/external/deqp/framework/opengl/
DgluTextureTestUtil.hpp137 …ReferenceParams (TextureType texType_, const tcu::Sampler& sampler_, LodMode lodMode_ = LODMODE_EX… in ReferenceParams()
139 , sampler (sampler_) in ReferenceParams()
/external/deqp/modules/gles2/functional/
Des2fShaderTextureFunctionTests.cpp150 const tcu::Sampler& sampler_) in TextureSpec()
157 , sampler (sampler_) in TextureSpec()
/external/deqp/external/openglcts/modules/glesext/texture_shadow_lod/
DesextcTextureShadowLodFunctionsTest.cpp163 const tcu::Sampler& sampler_) in TextureSpec()
170 , sampler(sampler_) in TextureSpec()
/external/deqp/modules/gles3/functional/
Des3fShaderTextureFunctionTests.cpp206 const tcu::Sampler& sampler_) in TextureSpec()
213 , sampler (sampler_) in TextureSpec()

12