explicit Dumper(const CrushWrapper *crush_,
const name_map_t& weight_set_names_)
: crush(crush_), weight_set_names(weight_set_names_) {
- crush->find_nonshadow_roots(roots);
+ crush->find_nonshadow_roots(&roots);
root = roots.begin();
}
explicit Dumper(const CrushWrapper *crush_,
bool show_shadow)
: crush(crush_), weight_set_names(weight_set_names_) {
if (show_shadow) {
- crush->find_roots(roots);
+ crush->find_roots(&roots);
} else {
- crush->find_nonshadow_roots(roots);
+ crush->find_nonshadow_roots(&roots);
}
root = roots.begin();
}
if (b &&
bidx < (int)cmap.size &&
cmap.args[bidx].weight_set &&
- cmap.args[bidx].weight_set_size >= 1) {
+ cmap.args[bidx].weight_set_positions >= 1) {
int bpos;
for (bpos = 0;
bpos < (int)cmap.args[bidx].weight_set[0].size &&
}
f->open_array_section(name.c_str());
for (unsigned opos = 0;
- opos < cmap.args[bidx].weight_set_size;
+ opos < cmap.args[bidx].weight_set_positions;
++opos) {
float w = (float)cmap.args[bidx].weight_set[opos].weights[bpos] /
(float)0x10000;