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

Method KeyTransformOp

mlx/data/op/KeyTransform.cpp:11–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace op {
10
11KeyTransformOp::KeyTransformOp(const std::string& ikey, const std::string& okey)
12 : ikey_(ikey), okey_(okey) {};
13
14Sample KeyTransformOp::apply(const Sample& sample) const {
15 auto src = sample::check_key(sample, ikey_, ArrayType::Any);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected