Skip to content
Snippets Groups Projects
Commit c6d21d79 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ENH: Clean ML factories before leaving

parent 103906cf
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,13 @@ public:
typedef ClassificationFilterType::LabelType LabelType;
typedef otb::MachineLearningModelFactory<ValueType, LabelType> MachineLearningModelFactoryType;
protected:
~PredictRegression() ITK_OVERRIDE
{
MachineLearningModelFactoryType::CleanFactories();
}
private:
void DoInit() ITK_OVERRIDE
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment