/external/tensorflow/tensorflow/core/kernels/ |
D | range_sampler_test.cc | 36 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 …]
|
D | candidate_sampler_ops.cc | 52 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
|
D | word2vec_kernels.cc | 258 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/ |
D | bandwidth_sampler_test.cc | 52 : 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 …]
|
D | bbr_sender.cc | 68 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 …]
|
D | bbr_sender.h | 251 BandwidthSampler sampler_; variable
|
D | bbr2_sender.cc | 75 old_sender ? &old_sender->sampler_ : nullptr), in Bbr2Sender()
|
/external/tensorflow/tensorflow/lite/profiling/ |
D | memory_usage_monitor.cc | 32 : 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()
|
D | memory_usage_monitor.h | 82 std::unique_ptr<Sampler> sampler_ = nullptr; variable
|
/external/deqp-deps/amber/src/vulkan/ |
D | sampler.h | 30 VkSampler GetVkSampler() { return sampler_; } in GetVkSampler() 33 VkSampler sampler_ = VK_NULL_HANDLE;
|
D | sampler.cc | 109 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/ |
D | mutator.cc | 187 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/ |
D | buffer.h | 93 void SetSampler(Sampler* sampler) { sampler_ = sampler; } in SetSampler() 95 Sampler* GetSampler() const { return sampler_; } in GetSampler() 276 Sampler* sampler_ = nullptr; variable
|
D | command.h | 565 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/ |
D | stack_sampling_profiler.cc | 842 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()
|
D | stack_sampling_profiler.h | 221 std::unique_ptr<StackSampler> sampler_; variable
|
/external/vulkan-validation-layers/layers/ |
D | descriptor_sets.h | 392 VkSampler GetSampler() const { return sampler_; } in GetSampler() 395 VkSampler sampler_; 406 VkSampler GetSampler() const { return sampler_; } in GetSampler() 411 VkSampler sampler_;
|
D | descriptor_sets.cpp | 1297 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/ |
D | replace_desc_array_access_using_var_index_test.cpp | 496 OpName %sampler_ "sampler_" in TEST_F()
|
/external/swiftshader/third_party/SPIRV-Tools/test/opt/ |
D | replace_desc_array_access_using_var_index_test.cpp | 498 OpName %sampler_ "sampler_" in TEST_F()
|
/external/deqp-deps/SPIRV-Tools/test/opt/ |
D | replace_desc_array_access_using_var_index_test.cpp | 498 OpName %sampler_ "sampler_" in TEST_F()
|
/external/deqp/framework/opengl/ |
D | gluTextureTestUtil.hpp | 137 …ReferenceParams (TextureType texType_, const tcu::Sampler& sampler_, LodMode lodMode_ = LODMODE_EX… in ReferenceParams() 139 , sampler (sampler_) in ReferenceParams()
|
/external/deqp/modules/gles2/functional/ |
D | es2fShaderTextureFunctionTests.cpp | 150 const tcu::Sampler& sampler_) in TextureSpec() 157 , sampler (sampler_) in TextureSpec()
|
/external/deqp/external/openglcts/modules/glesext/texture_shadow_lod/ |
D | esextcTextureShadowLodFunctionsTest.cpp | 163 const tcu::Sampler& sampler_) in TextureSpec() 170 , sampler(sampler_) in TextureSpec()
|
/external/deqp/modules/gles3/functional/ |
D | es3fShaderTextureFunctionTests.cpp | 206 const tcu::Sampler& sampler_) in TextureSpec() 213 , sampler (sampler_) in TextureSpec()
|