Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/embedx
/ Next
Method
Next
src/sampler/sampling/word2vec_sampling.cc:93–96 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
91
}
92
93
int_t Next() const noexcept {
94
auto k = (int_t)(ThreadLocalRandom() * table_size_);
95
return sample_tables_[k];
96
}
97
};
98
99
Table table_;
Callers
nothing calls this directly
Calls
1
ThreadLocalRandom
Function · 0.85
Tested by
no test coverage detected