Supporting at-most-one constraint for One Hot encoding
[satune.git] / src / Test / serializestatictuner.cc
index 07a3c7206fcd888f8c8116fcad3ef4d438aa21a7..c23f18d3e374c5ea0dc0ac5a64b028839acbfba1 100644 (file)
@@ -38,8 +38,10 @@ int main(int argc, char **argv) {
                elem_onehot->setTunable(NAIVEENCODER, &NaiveEncodingDesc, ONEHOT);
                elem_unary->setTunable(NAIVEENCODER, &NaiveEncodingDesc, UNARY);
                elem_bin->serialize("binarytuner.conf");
-               elem_onehot->serialize("onehottuner.conf");
                elem_unary->serialize("unarytuner.conf");
+               elem_onehot->serialize("onehottuner.conf");
+               elem_onehot->setTunable(ONEHOTATMOSTONE, &OneHotAtMostOneDesc, ONEHOT_COMMANDER);
+               elem_onehot->serialize("onehottunercommander.conf");
                elem_bin->setTunable(ENCODINGGRAPHOPT, &offon, 1);
                elem_onehot->setTunable(ENCODINGGRAPHOPT, &offon, 1);
                elem_unary->setTunable(ENCODINGGRAPHOPT, &offon, 1);