vendor/tomotopy/src/TopicModel/LDACVB0Model.hpp in tomoto-0.1.3 vs vendor/tomotopy/src/TopicModel/LDACVB0Model.hpp in tomoto-0.1.4
- old
+ new
@@ -161,10 +161,10 @@
const size_t chStride = std::min(pool.getNumWorkers() * 8, this->docs.size());
for (size_t ch = 0; ch < chStride; ++ch)
{
res.emplace_back(pool.enqueue([&, this, ch, chStride](size_t threadId)
{
- forRandom((this->docs.size() - 1 - ch) / chStride + 1, rgs[threadId](), [&, this](size_t id)
+ forShuffled((this->docs.size() - 1 - ch) / chStride + 1, rgs[threadId](), [&, this](size_t id)
{
static_cast<DerivedClass*>(this)->template sampleDocument<ParallelScheme::copy_merge>(
this->docs[id * chStride + ch], 0, id * chStride + ch,
localData[threadId], rgs[threadId], this->globalStep);
});
\ No newline at end of file