зеркало из https://github.com/microsoft/EdgeML.git
Free dynamically alloc'd memory. (#128)
This commit is contained in:
Родитель
48d2f3aa84
Коммит
5d2aacd5b6
|
@ -317,6 +317,10 @@ void BonsaiPredictor::batchEvaluate(
|
|||
std::ofstream allDumper(dataDir + "/BonsaiResults" + "/resultDump", std::ofstream::out | std::ofstream::app);
|
||||
allDumper << totalNonZeros() << " " << accuracy << " " << currResultsPath << "\n";
|
||||
allDumper.close();
|
||||
|
||||
delete[] scoreArray;
|
||||
delete[] trainvals;
|
||||
delete[] label;
|
||||
}
|
||||
|
||||
size_t BonsaiPredictor::totalNonZeros()
|
||||
|
|
Загрузка…
Ссылка в новой задаче