MCPcopy 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
177void WeightedPicker::Append(int32 weight) {
178 Resize(num_elements() + 1);
179 set_weight(num_elements() - 1, weight);
180}
181
182void WeightedPicker::Resize(int new_size) {
183 CHECK_GE(new_size, 0);

Callers 2

TESTFunction · 0.45
TestPickerFunction · 0.45

Calls 1

ResizeFunction · 0.50

Tested by 2

TESTFunction · 0.36
TestPickerFunction · 0.36