From 6d11f6312abdc17aea996d7cb8036544486d6e51 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Mon, 10 Jan 2022 16:09:19 +0000 Subject: [PATCH] - fixed crash while adding new training pattern for context mode git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@780 b431acfa-c32f-4a4a-93f1-934dc6c82436 --- source/MainComponent.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/MainComponent.hpp b/source/MainComponent.hpp index 3f2be79..9d3d930 100644 --- a/source/MainComponent.hpp +++ b/source/MainComponent.hpp @@ -126,7 +126,7 @@ private: const arma::mat trainingAt(size_t index) { - if (m_pLayer->context().is_empty()) + if (m_pLayer->context().n_rows != m_stack->trainingBatch().n_rows) { m_pLayer->setBatch(m_stack->trainingBatch()); }