Extract Constant Size Feature

In xgb cost model, it extracts feature some kind of methods(itervar, curve, knobs) But, its size depends on kind of knobs and # of knobs. So any other method, I extract the constant size of feature from any schs and tasks