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

Method batch

mlx/data/Stream.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33Stream Stream::batch(
34 int64_t batch_size,
35 const std::unordered_map<std::string, double>& pad_values,
36 const std::unordered_map<std::string, int>& batch_dims) const {
37 return Stream(std::make_shared<stream::Batch>(
38 self_, batch_size, pad_values, batch_dims));
39}
40
41Stream Stream::buffered(
42 int64_t buffer_size,

Callers

nothing calls this directly

Calls 1

StreamClass · 0.70

Tested by

no test coverage detected