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

Method clear

src/sampler/sampling/word2vec_sampling.cc:88–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 void clear() noexcept {
89 table_size_ = 0;
90 sample_tables_.clear();
91 }
92
93 int_t Next() const noexcept {
94 auto k = (int_t)(ThreadLocalRandom() * table_size_);

Callers 15

TraverseMethod · 0.45
MetaPathTraverseMethod · 0.45
DoSamplingMethod · 0.45
ClearMethod · 0.45
DrawKHypothesisFunction · 0.45
CountNodesFunction · 0.45
ClearMethod · 0.45
InitMethod · 0.45
ClearMethod · 0.45
DoSamplingMethod · 0.45
SampleMethod · 0.45
NormalizeProbsFunction · 0.45

Calls

no outgoing calls

Tested by 1

DoSamplingMethod · 0.36