index eca20b5a7c32d100d90a977501f3d1cab819991b..8f512e8654d9d8fdce08732eaf093597e1628df3 100644 (file)
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
+ runFullNet(false),
+ NETWORK_HEAP_SIZE(64 << 20), // 64MB for inceptionNetv1
+ PARAM_HEAP_SIZE(9 << 20), // 9MB for mobileNet1
+ enableOutputTrace(false),
+ enableApiTrace(false),
+ showHeapStats(false),
+ quantHistoryParam1(20),
+ quantHistoryParam2(5),
+ quantMargin(0)
{
}
<< inHeight << "x" << inNumChannels
<< "\nPreProcType " << preProcType
<< "\nRunFullNet " << runFullNet
- << "\nEnableInternalInput " << enableInternalInput
<< "\nInputFile " << inData
<< "\nOutputFile " << outData
<< "\nNetwork " << netBinFile
<< "\nParameters " << paramsBinFile
- << "\nEO Heap Size (MB) " << (EXTMEM_HEAP_SIZE >> 20)
+ << "\nEO Heap Size (MB) " << (NETWORK_HEAP_SIZE >> 20)
<< "\nParameter heap size (MB) " << (PARAM_HEAP_SIZE >> 20)
<< "\n";
}
errors++;
}
- size_t paramsBinFileSize = 0;
if (stat(paramsBinFile.c_str(), &buffer) != 0)
{
std::cerr << "paramsBinFile not found: " << paramsBinFile << std::endl;
errors++;
}
- else
- paramsBinFileSize = buffer.st_size;
if (!inData.empty() && stat(inData.c_str(), &buffer) != 0)
{
errors++;
}
- // Due to alignment, the parameter heap must be larger than the
- // parameter binary. Using 1.1 as a conservative factor.
- if (paramsBinFileSize > 0 &&
- (paramsBinFileSize * 1.1) > PARAM_HEAP_SIZE)
- {
- std::cerr << "Parameter binary file larger than paramter heap. "
- "Increase Configuration::PARAM_HEAP_SIZE" << std::endl;
- errors++;
- }
-
if (errors > 0)
return false;