Home
last modified time | relevance | path

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

/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, &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>(a + i, 10 - i)); in Update2()
78 std::unique_ptr<RangeSampler> sampler_; member in tensorflow::__anon280602c30111::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.cc257 sampler_ = new random::DistributionSampler(vocab_weights); in NegTrainOp()
260 ~NegTrainOp() override { delete sampler_; } in ~NegTrainOp()
287 OP_REQUIRES(ctx, vocab_size == sampler_->num(), in Compute()
289 " vs. ", sampler_->num())); in Compute()
333 const int sample = sampler_->Sample(&srnd); in Compute()
349 random::DistributionSampler* sampler_ = nullptr; member in tensorflow::NegTrainOp
/external/v8/src/profiler/
Dcpu-profiler.cc47 sampler_(new CpuSampler(isolate, this)), in ProfilerEventsProcessor()
52 sampler_->IncreaseProfilingDepth(); in ProfilerEventsProcessor()
56 sampler_->DecreaseProfilingDepth(); in ~ProfilerEventsProcessor()
175 if (sampler_) sampler_->DoSample(); in Run()
Dcpu-profiler.h160 sampler::Sampler* sampler() { return sampler_.get(); } in sampler()
174 std::unique_ptr<sampler::Sampler> sampler_; variable
/external/vulkan-validation-layers/layers/
Ddescriptor_sets.h217 VkSampler GetSampler() const { return sampler_; } in GetSampler()
221 VkSampler sampler_;
232 VkSampler GetSampler() const { return sampler_; } in GetSampler()
237 VkSampler sampler_;
Ddescriptor_sets.cpp875 cvdescriptorset::SamplerDescriptor::SamplerDescriptor(const VkSampler *immut) : sampler_(VK_NULL_HA… in SamplerDescriptor()
879 sampler_ = *immut; in SamplerDescriptor()
1076 sampler_ = update->pImageInfo[index].sampler; in WriteUpdate()
1082 auto update_sampler = static_cast<const SamplerDescriptor *>(src)->sampler_; in CopyUpdate()
1083 sampler_ = update_sampler; in CopyUpdate()
1090 auto sampler_state = GetSamplerState(dev_data, sampler_); in BindCommandBuffer()
1096 …: sampler_(VK_NULL_HANDLE), immutable_(false), image_view_(VK_NULL_HANDLE), image_layout_(VK_IMAGE… in ImageSamplerDescriptor()
1100 sampler_ = *immut; in ImageSamplerDescriptor()
1108 sampler_ = image_info.sampler; in WriteUpdate()
1115 auto update_sampler = static_cast<const ImageSamplerDescriptor *>(src)->sampler_; in CopyUpdate()
[all …]
/external/deqp/framework/opengl/
DgluTextureTestUtil.hpp132 …ReferenceParams (TextureType texType_, const tcu::Sampler& sampler_, LodMode lodMode_ = LODMODE_EX… in ReferenceParams()
134 , sampler (sampler_) in ReferenceParams()
/external/deqp/modules/gles2/functional/
Des2fShaderTextureFunctionTests.cpp150 const tcu::Sampler& sampler_) in TextureSpec()
157 , sampler (sampler_) in TextureSpec()
/external/v8/src/
Dlog.cc530 sampler_(sampler), in SamplingThread()
533 while (sampler_->IsProfiling()) { in Run()
534 sampler_->DoSample(); in Run()
540 sampler::Sampler* sampler_; member in v8::internal::SamplingThread
/external/deqp/modules/gles3/functional/
Des3fShaderTextureFunctionTests.cpp206 const tcu::Sampler& sampler_) in TextureSpec()
213 , sampler (sampler_) in TextureSpec()
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderTextureFunctionTests.cpp217 const tcu::Sampler& sampler_) in TextureSpec()
224 , sampler (sampler_) in TextureSpec()
/external/vulkan-validation-layers/include/vulkan/
Dvulkan.hpp5632 …DescriptorImageInfo( Sampler sampler_ = Sampler(), ImageView imageView_ = ImageView(), ImageLayout… in DescriptorImageInfo()
5633 : sampler( sampler_ ) in DescriptorImageInfo()
5649 DescriptorImageInfo& setSampler( Sampler sampler_ ) in setSampler()
5651 sampler = sampler_; in setSampler()