Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Megatron-LM
Commits
1f514406
Commit
1f514406
authored
Jun 23, 2020
by
Neel Kant
Browse files
Fix accidental comment
parent
3354081f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
megatron/data/helpers.cpp
megatron/data/helpers.cpp
+3
-3
No files found.
megatron/data/helpers.cpp
View file @
1f514406
...
...
@@ -581,9 +581,9 @@ py::array build_blocks_mapping_impl(const py::array_t<int64_t>& docs_,
}
// for (int iteration=0; iteration < 2; ++iteration) {
Shuffle
.
We
need
a
64
bit
random
number
generator
as
we
might
have
more
than
2
billion
samples
.
//
Shuffle.
//
We need a 64 bit random number generator as we might have more
//
than 2 billion samples.
std
::
mt19937_64
rand64_gen
(
seed
+
1
);
for
(
auto
i
=
(
num_samples
-
1
);
i
>
0
;
--
i
)
{
const
auto
j
=
static_cast
<
int64_t
>
(
rand64_gen
()
%
(
i
+
1
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment