Skip to content

Commit

Permalink
Revert an unused change in Sequences.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Yongqiang Wang committed Dec 1, 2015
1 parent 606ba9f commit 2f217c5
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions Common/Include/Sequences.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,26 +235,6 @@ namespace Microsoft { namespace MSR { namespace CNTK {
return false;
}

bool DecimateSequencesNotSelected(const vector<size_t> & selectedseq)
{
size_t maxseqid = *std::max_element(selectedseq.begin(), selectedseq.end());
if (maxseqid > m_numParallelSequences)
{
RuntimeError("DecimateSequencesNotSelected: there are %d parallel sequences, while you are asking for the %d-th sequence\n", m_numParallelSequences, maxseqid);
}

Matrix<float> newBoundaryFlags(selectedseq.size(), m_numTimeSteps, CPUDEVICE);
for (size_t i = 0; i < selectedseq.size(); i++)
{
for (size_t j = 0; j < m_numTimeSteps; j++)
{
newBoundaryFlags(i, j) = m_sentenceBoundaryFlags(selectedseq[i], j);
}
}
m_sentenceBoundaryFlags = newBoundaryFlags;
m_numParallelSequences = selectedseq.size();
return true;
}
private:
size_t m_numTimeSteps;
size_t m_numParallelSequences;
Expand Down

0 comments on commit 2f217c5

Please sign in to comment.