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

Method KeyTransform

mlx/data/op/KeyTransform.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23KeyTransform::KeyTransform(
24 const std::string& ikey,
25 std::function<std::shared_ptr<Array>(const std::shared_ptr<const Array>&)>
26 op,
27 const std::string& okey)
28 : KeyTransformOp(ikey, okey), op_(op) {};
29
30std::shared_ptr<Array> KeyTransform::apply_key(
31 const std::shared_ptr<const Array>& x) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected