- fixed slow down on training slider actions
git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@781 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -126,13 +126,12 @@ private:
|
||||
|
||||
const arma::mat trainingAt(size_t index)
|
||||
{
|
||||
if (m_pLayer->context().n_rows != m_stack->trainingBatch().n_rows)
|
||||
{
|
||||
m_pLayer->setBatch(m_stack->trainingBatch());
|
||||
}
|
||||
|
||||
if (!m_pLayer->context().is_empty())
|
||||
if (m_pLayer->context().n_cols > 0)
|
||||
{
|
||||
if (m_pLayer->context().n_rows != m_stack->trainingBatch().n_rows)
|
||||
{
|
||||
m_pLayer->setBatch(m_stack->trainingBatch());
|
||||
}
|
||||
return arma::join_rows(m_stack->trainingBatch().row(index), m_pLayer->context().row(index));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user