Reduce complexity of ssd_multibox example
[tidl/tidl-api.git] / tinn_api / src / configuration.cpp
index f79f629137b7db9096b6c4d07dbf06f6af3fce9f..70fd136b65b3bd43d2aa3f83b37eef712c46ed2f 100644 (file)
 #include <fstream>
 
 #include "configuration.h"
+#include "parameters.h"
 
-using namespace tidl;
+using namespace tinn;
+
+Configuration::Configuration(): numFrames(0), inHeight(0), inWidth(0),
+                     inNumChannels(0),
+                     noZeroCoeffsPercentage(100),
+                     preProcType(0),
+                     runFullNet(0),
+                     enableInternalInput(0),
+                     EXTMEM_HEAP_SIZE(64 << 20),  // 64MB for inceptionNetv1
+                     PARAM_HEAP_SIZE(9 << 20)     // 9MB for mobileNet1
+{
+}
 
 void Configuration::Print(std::ostream &os) const
 {
     os << "Configuration"
        << "\nFrame=      " << numFrames << " " << inWidth << "x"
                            << inHeight << "x" << inNumChannels
+       << "\nPreProcType              " << preProcType
+       << "\nRunFullNet               " << runFullNet
+       << "\nEnableInternalInput      " << enableInternalInput
        << "\nInputFile                " << inData
        << "\nOutputFile               " << outData
        << "\nNetwork                  " << netBinFile