From 2791ea968b078efd8b72391544a9b51c285a276e Mon Sep 17 00:00:00 2001 From: Hamed Gorjiara Date: Wed, 31 Oct 2018 12:25:14 -0700 Subject: [PATCH] Serializing circuit encoding --- src/Test/serializetuner.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Test/serializetuner.cc b/src/Test/serializetuner.cc index dcce0c5..d63efc9 100644 --- a/src/Test/serializetuner.cc +++ b/src/Test/serializetuner.cc @@ -14,6 +14,12 @@ int main(int argc, char **argv) { elem_bin->serialize("binarytuner.conf"); elem_onehot->serialize("onehottuner.conf"); elem_unary->serialize("unarytuner.conf"); + elem_bin->setTunable(ENCODINGGRAPHOPT, &onoff, 1); + elem_onehot->setTunable(ENCODINGGRAPHOPT, &onoff, 1); + elem_unary->setTunable(ENCODINGGRAPHOPT, &onoff, 1); + elem_bin->serialize("circuitbinarytuner.conf"); + elem_onehot->serialize("circuitgraphonehottuner.conf"); + elem_unary->serialize("circuitgraphunarytuner.conf"); delete elem_bin; delete elem_onehot; delete elem_unary; -- 2.34.1