From 5d09c73f0435f02772a0b641349567ff1d200a9b Mon Sep 17 00:00:00 2001 From: Fares Schulz Date: Mon, 23 Sep 2024 23:09:30 +0200 Subject: [PATCH] None backend should not be an option for the nn-inference-template --- source/PluginParameters.h | 2 +- source/PluginProcessor.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/source/PluginParameters.h b/source/PluginParameters.h index 77f1e07..3214e5b 100644 --- a/source/PluginParameters.h +++ b/source/PluginParameters.h @@ -15,7 +15,7 @@ class PluginParameters { DRY_WET_NAME = "Dry/Wet" ; - inline static juce::StringArray backendTypes {"TFLITE", "LIBTORCH", "ONNXRUNTIME", "NONE"}; + inline static juce::StringArray backendTypes {"TFLITE", "LIBTORCH", "ONNXRUNTIME"}; inline static juce::String defaultBackend {backendTypes[2]}; static juce::StringArray getPluginParameterList(); diff --git a/source/PluginProcessor.cpp b/source/PluginProcessor.cpp index ca9d3a5..866cad0 100644 --- a/source/PluginProcessor.cpp +++ b/source/PluginProcessor.cpp @@ -214,7 +214,6 @@ void AudioPluginAudioProcessor::parameterChanged(const juce::String ¶meterID if (paramString == "LIBTORCH") {inferenceHandler.setInferenceBackend(anira::LIBTORCH); std::cout << "LIBTORCH" << std::endl;} #endif - if (paramString == "NONE") inferenceHandler.setInferenceBackend(anira::NONE); } } //==============================================================================