Skip to content

Commit

Permalink
Remove useless merged code
Browse files Browse the repository at this point in the history
  • Loading branch information
Yinggong ZHAO committed Jul 22, 2015
1 parent 8c77b0c commit a48278a
Showing 1 changed file with 1 addition and 39 deletions.
40 changes: 1 addition & 39 deletions DataReader/LMSequenceReader/SequenceReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2129,42 +2129,4 @@ int BatchSequenceReader<ElemType>::GetSentenceEndIdFromOutputLabel()

template class BatchSequenceReader<double>;
template class BatchSequenceReader<float>;

}}}
=======
labels->TransferFromDeviceToDevice(CPUDEVICE, curDevId, true, false, false);
}
}

template<class ElemType>
void BatchSequenceReader<ElemType>::SetSentenceSegBatch(Matrix<ElemType>& sentenceBegin, vector<MinibatchPackingFlag>& minibatchPackingFlag)
{
DEVICEID_TYPE device = mtSentenceBegin.GetDeviceId();
mtSentenceBegin.TransferFromDeviceToDevice(device, sentenceBegin.GetDeviceId(), true);
sentenceBegin.SetValue(mtSentenceBegin);
mtSentenceBegin.TransferFromDeviceToDevice(sentenceBegin.GetDeviceId(), device, true);

minibatchPackingFlag = m_minibatchPackingFlag;
}

template<class ElemType>
int BatchSequenceReader<ElemType>::GetSentenceEndIdFromOutputLabel()
{

// now get the labels
LabelInfo& labelIn = m_labelInfo[labelInfoIn];
auto found = word4idx.find(labelIn.endSequence);

// not yet found, add to the map
if (found != word4idx.end())
{
return (int)found->second;
}
else return -1;
}

template class BatchSequenceReader<double>;
template class BatchSequenceReader<float>;

}}}
>>>>>>> b398d92b561a563c576e8a36ea7d583c6ce1a8e6
}}}

0 comments on commit a48278a

Please sign in to comment.