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

Method SampleTransform

mlx/data/op/SampleTransform.cpp:9–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace op {
8
9SampleTransform::SampleTransform(std::function<Sample(const Sample&)> op)
10 : op_(op) {}
11
12Sample SampleTransform::apply(const Sample& sample) const {
13 return op_(sample);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected