Eliminate "requiredata:..." message when verbosity == 0
This commit is contained in:
Родитель
6834fba3cb
Коммит
fd7af0a949
|
@ -102,7 +102,7 @@ class minibatchutterancesourcemulti : public minibatchsource
|
|||
bool isinram() const { return !frames.empty(); }
|
||||
// page in data for this chunk
|
||||
// We pass in the feature info variables by ref which will be filled lazily upon first read
|
||||
void requiredata (string & featkind, size_t & featdim, unsigned int & sampperiod, const latticesource & latticesource) const
|
||||
void requiredata (string & featkind, size_t & featdim, unsigned int & sampperiod, const latticesource & latticesource, int verbosity=0) const
|
||||
{
|
||||
if (numutterances() == 0)
|
||||
throw std::logic_error ("requiredata: cannot page in virgin block");
|
||||
|
@ -132,6 +132,7 @@ class minibatchutterancesourcemulti : public minibatchsource
|
|||
latticesource.getlattices (utteranceset[i].key(), lattices[i], uttframes.cols());
|
||||
}
|
||||
//fprintf (stderr, "\n");
|
||||
if (verbosity)
|
||||
fprintf (stderr, "requiredata: %d utterances read\n", utteranceset.size());
|
||||
}
|
||||
catch (...)
|
||||
|
@ -924,7 +925,7 @@ private:
|
|||
fprintf (stderr, "feature set %d: requirerandomizedchunk: paging in randomized chunk %d (frame range [%d..%d]), %d resident in RAM\n", m, chunkindex, chunk.globalts, chunk.globalte()-1, chunksinram+1);
|
||||
msra::util::attempt (5, [&]() // (reading from network)
|
||||
{
|
||||
chunkdata.requiredata (featkind[m], featdim[m], sampperiod[m], this->lattices);
|
||||
chunkdata.requiredata (featkind[m], featdim[m], sampperiod[m], this->lattices, verbosity);
|
||||
});
|
||||
}
|
||||
chunksinram++;
|
||||
|
|
Загрузка…
Ссылка в новой задаче