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

Method Compose

mlx/data/stream/Compose.cpp:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace stream {
10
11Compose::Compose(
12 std::shared_ptr<Stream>& stream,
13 std::function<std::shared_ptr<Stream>(const Sample& sample)> op)
14 : stream_(stream), op_(op) {};
15
16bool Compose::next_stream_() const {
17 auto sample = stream_->next();

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected