Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/embedx
/ NewAliasSampling
Function
NewAliasSampling
src/sampler/sampling/alias_sampling.cc:107–109 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
105
}
106
107
std::unique_ptr<Sampling> NewAliasSampling(const vec_float_t* probs) {
108
return AliasSampling::Create(*probs);
109
}
110
111
} // namespace embedx
Callers
1
NewSampling
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected