Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/embedx
/ Clear
Method
Clear
src/sampler/sampling/alias_sampling.cc:38–41 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
36
bool Init(const vec_float_t& probs);
37
38
void Clear() noexcept {
39
alias_probs_.clear();
40
alias_tables_.clear();
41
}
42
43
void Resize(size_t size) {
44
alias_probs_.resize(size, 0);
Callers
nothing calls this directly
Calls
1
clear
Method · 0.45
Tested by
no test coverage detected