Skip to content

Commit

Permalink
making gcc happy
Browse files Browse the repository at this point in the history
  • Loading branch information
frankseide committed Apr 13, 2016
1 parent a8cf487 commit b382694
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Source/Readers/Kaldi2Reader/HTKMLFReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2055,4 +2055,5 @@ void HTKMLFReader<ElemType>::GetDataNamesFromConfig(const ConfigRecordType& read

template class HTKMLFReader<float>;
template class HTKMLFReader<double>;
} } }

}}}
10 changes: 5 additions & 5 deletions Source/Readers/Kaldi2Reader/HTKMLFReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ class HTKMLFReader : public IDataReader
MBLayoutPtr pMBLayout;
std::vector<std::vector<std::pair<wstring, size_t>>> minibatchUttInfo;
size_t currentMBSize;
MinibatchBufferUnit()
: pMBLayout(make_shared<MBLayout>()), currentMBSize(0)
MinibatchBufferUnit() :
pMBLayout(make_shared<MBLayout>()), currentMBSize(0)
{
m_pMBLayout->SetUniqueAxisName(L"HTKMLFReader");
pMBLayout->SetUniqueAxisName(L"HTKMLFReader");
}
};
bool m_doMinibatchBuffering;
Expand Down Expand Up @@ -164,8 +164,8 @@ class HTKMLFReader : public IDataReader
// set to true so that a current minibatch can uses state activities from the previous minibatch.
// default will have truncated BPTT, which only does BPTT inside a minibatch
bool mIgnoreSentenceBeginTag;
HTKMLFReader()
: m_pMBLayout(make_shared<MBLayout>())
HTKMLFReader() :
m_pMBLayout(make_shared<MBLayout>())
{
m_pMBLayout->SetUniqueAxisName(L"HTKMLFReader");
}
Expand Down
2 changes: 2 additions & 0 deletions Source/SGDLib/SGD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include "DataReaderHelpers.h"
#include "MatrixQuantizerImpl.h"
#ifdef QUANTIZED_GRADIENT_AGGREGATION
static inline bool operator==(const std::pair<double,size_t>& a, size_t b) { assert(b==0); return a.first == b; }
// ^^ workaround until this line in AggregateGradientsImpl() gets updated: assert(headerCPU->evalErrors[i] == 0);
#include "AllReduceDistGradAggregator.h"
#endif
#include "SimpleDistGradAggregator.h"
Expand Down

0 comments on commit b382694

Please sign in to comment.