fix cntk for philly compile error

This commit is contained in:
Guoli Ye 2020-01-13 23:26:08 -08:00
Родитель 094885c2f3
Коммит 6d664aaa42
4 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -1948,7 +1948,7 @@ public:
// sanity check
if (vt_labels.size() != vocabSize)
{
RuntimeError("RNNT_decode_nbest_MBR: size not match, vt_labels.size() = %d, and vocabSize = %d.", vt_labels.size(), vocabSize);
RuntimeError("RNNT_decode_nbest_MBR: size not match, vt_labels.size() = %d, and vocabSize = %d.", int(vt_labels.size()), int(vocabSize));
}
StreamMinibatchInputs decodeinputMatrices = DataReaderHelpersFunctions::RetrieveInputMatrices(decodeinputNodes);

Просмотреть файл

@ -675,7 +675,7 @@ void SGD<ElemType>::TrainOrAdaptModel(int startEpoch, ComputationNetworkPtr net,
}
// read the labels (i.e., mixed units), noitce the labels are also used in data reader indicating duplicating calls to read the file.
// However, since this is simple for coding, i decided to read it again here.
auto_file_ptr f(fopenOrDie(m_labelMappingFile, L"rbS"));
auto_file_ptr f(fopenOrDie(m_labelMappingFile, "rbS"));
char buf[1024];
while (!feof(f))
{
@ -3349,7 +3349,7 @@ SGDParams::SGDParams(const ConfigRecordType& configSGD, size_t sizeofElemType)
m_numBestMBR = configSGD(L"NumBestMBR", (size_t) 8);
m_trainMethodMBR = configSGD(L"TrainMethodMBR", "BaumWelch");
m_doMBR = configSGD(L"DoMBR", true);
m_labelMappingFile = configSGD(L"labelMappingFile", L"");
m_labelMappingFile = configSGD(L"labelMappingFile", "");
m_lengthNorm = configSGD(L"LengthNorm", true);
m_showWERMode = configSGD(L"showWERMode", "average");
m_isSVD = configSGD(L"SVD", true);

Просмотреть файл

@ -287,7 +287,7 @@ protected:
string m_trainMethodMBR; // can be Viterbi or BaumWelch
bool m_wordPathPosteriorFromDecodeMBR; // false if we get the posteriror from decode, true if we get it from the forward phase of training
bool m_doMBR; // true to do MBR, false not
wstring m_labelMappingFile; //
string m_labelMappingFile; //
bool m_lengthNorm; // true to do length Norm, false, not. It will be used when computing the posterior
string m_showWERMode;
bool m_isSVD;

Просмотреть файл

@ -468,10 +468,10 @@ public:
{
rnntdfs.deleteSeq(CurSequences[n]);
}
vector<RNNTDecodeFunctions<ElemType>::Sequence>().swap(CurSequences);
vector<typename RNNTDecodeFunctions<ElemType>::Sequence>().swap(CurSequences);
CurSequences = nextSequences;
vector<RNNTDecodeFunctions<ElemType>::Sequence>().swap(nextSequences);
vector<typename RNNTDecodeFunctions<ElemType>::Sequence>().swap(nextSequences);
//deal with the same prefix
/*sort(CurSequences.begin(), CurSequences.end(),
[](const Sequence& a, const Sequence& b) -> bool {