- fixed crash

This commit is contained in:
2024-01-21 20:44:56 +01:00
parent 6eb76febdc
commit d296ca5a1d
+1
View File
@@ -817,6 +817,7 @@ void MainComponent::comboBoxChanged (ComboBox* comboBoxThatHasChanged)
int index = m_rbmSelect->getSelectedItemIndex();
m_pLayer = static_cast<RbmComponent*>(m_stack->getLayer(index));
m_weightIndex = 0;
m_trainingIndex = 0;
updateControls();
m_pLayer->redrawWeights(m_weightIndex);
if (m_stack->trainingBatch().n_rows > 0)