Skip to content

Commit

Permalink
Delete TFLiteClass only when ClassFlowCNN gets deleted (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slider0007 authored Jun 27, 2023
1 parent 935f930 commit f4f2d8b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions code/components/jomjol_flowcontroll/ClassFlowCNNGeneral.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,6 @@ bool ClassFlowCNNGeneral::getNetworkParameter()
if (!tflite->LoadModel(zwcnn)) {
LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "TFLITE: Failed to load model: " + cnnmodelfile);
LogFile.WriteHeapInfo("getNetworkParameter-LoadModel");
delete tflite;
return false;
}

Expand Down Expand Up @@ -692,7 +691,6 @@ bool ClassFlowCNNGeneral::doNeuralNetwork(string time)
}
else {
LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "Invoke aborted");
delete tflite;
return false;
}

Expand Down Expand Up @@ -746,7 +744,6 @@ bool ClassFlowCNNGeneral::doNeuralNetwork(string time)
}
else {
LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "Invoke aborted");
delete tflite;
return false;
}

Expand Down Expand Up @@ -830,7 +827,6 @@ bool ClassFlowCNNGeneral::doNeuralNetwork(string time)
}
else {
LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "Invoke aborted");
delete tflite;
return false;
}

Expand Down

0 comments on commit f4f2d8b

Please sign in to comment.