Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ Append
Method
Append
tensorflow/core/lib/random/weighted_picker.cc:177–180 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
175
}
176
177
void WeightedPicker::Append(int32 weight) {
178
Resize(num_elements() + 1);
179
set_weight(num_elements() - 1, weight);
180
}
181
182
void WeightedPicker::Resize(int new_size) {
183
CHECK_GE(new_size, 0);
Callers
2
TEST
Function · 0.45
TestPicker
Function · 0.45
Calls
1
Resize
Function · 0.50
Tested by
2
TEST
Function · 0.36
TestPicker
Function · 0.36