Add shuffle order interface and default implementation.
These classes maintain a shuffled order of indices allowing to query the next, previous, first, and last indices. And also support inserting and removing elements without changing the shuffled order of the rest. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=164116287
Showing
with
390 additions
and
0 deletions
Please
register
or
sign in
to comment