MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / shuffle

Method shuffle

mlx/data/Stream.cpp:131–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131Stream Stream::shuffle(int64_t buffer_size) const {
132 return Stream(std::make_shared<stream::Shuffle>(self_, buffer_size));
133}
134Stream Stream::shuffle_if(bool cond, int64_t buffer_size) const {
135 if (cond) {
136 return shuffle(buffer_size);

Callers

nothing calls this directly

Calls 1

StreamClass · 0.70

Tested by

no test coverage detected