CMake options for forcing use of NAM Core for LSTM or WaveNet

This commit is contained in:
Mike Oliphant
2024-11-14 07:47:52 -08:00
parent 5dd03764c5
commit 3f5872cc78
3 changed files with 23 additions and 2 deletions
+8
View File
@@ -12,6 +12,14 @@ namespace NAM {
{
// prevent allocations on the audio thread
currentModelPath.reserve(MAX_FILE_NAME+1);
#ifdef LSTM_PREFER_NAM // Use NAM Core for NAM LSTM models
NeuralAudio::NeuralModel::SetLSTMLoadMode(NeuralAudio::PreferNAMCore);
#endif
#ifdef WAVENET_PREFER_NAM // Use NAM Core for NAM WaveNet models
NeuralAudio::NeuralModel::SetWaveNetLoadMode(NeuralAudio::PreferNAMCore);
#endif
}
Plugin::~Plugin()