MCPcopy Create free account
hub / github.com/Tencent/embedx / Init

Method Init

src/sampler/sampling/uniform_sampling.cc:52–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52bool UniformSampling::Init(const vec_float_t& probs) {
53 table_size_ = (int)probs.size();
54 return table_size_ != 0;
55}
56
57std::unique_ptr<Sampling> NewUniformSampling(const vec_float_t* probs) {
58 return UniformSampling::Create(probs);

Callers 1

CreateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected