Addressing minor CR comments
This commit is contained in:
Родитель
c47af7eac8
Коммит
c34e358c2a
|
@ -96,7 +96,7 @@ namespace Microsoft { namespace MSR { namespace CNTK {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Always descrease the available number of samples.
|
// Always decrease the available number of samples.
|
||||||
samples -= (int)sequence->m_numberOfSamples;
|
samples -= (int)sequence->m_numberOfSamples;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -274,6 +274,7 @@ BOOST_AUTO_TEST_CASE(BlockRandomizerOneEpochWithChunks2)
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(BlockRandomizerChaosMonkey)
|
BOOST_AUTO_TEST_CASE(BlockRandomizerChaosMonkey)
|
||||||
{
|
{
|
||||||
|
const int sequenceLength = 3;
|
||||||
const int seed = 42;
|
const int seed = 42;
|
||||||
const int numChunks = 100;
|
const int numChunks = 100;
|
||||||
const int numSequencesPerChunk = 10;
|
const int numSequencesPerChunk = 10;
|
||||||
|
@ -283,7 +284,7 @@ BOOST_AUTO_TEST_CASE(BlockRandomizerChaosMonkey)
|
||||||
std::mt19937 rng(seed);
|
std::mt19937 rng(seed);
|
||||||
std::uniform_int_distribution<int> distr(1, 10);
|
std::uniform_int_distribution<int> distr(1, 10);
|
||||||
|
|
||||||
auto mockDeserializer = std::make_shared<MockDeserializer>(numChunks, numSequencesPerChunk, data, 3);
|
auto mockDeserializer = std::make_shared<MockDeserializer>(numChunks, numSequencesPerChunk, data, sequenceLength);
|
||||||
|
|
||||||
auto randomizer = std::make_shared<BlockRandomizer>(0, windowSize, mockDeserializer, BlockRandomizer::DecimationMode::chunk, false);
|
auto randomizer = std::make_shared<BlockRandomizer>(0, windowSize, mockDeserializer, BlockRandomizer::DecimationMode::chunk, false);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче