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

Method RenameKey

mlx/data/op/RenameKey.cpp:8–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace data {
7namespace op {
8RenameKey::RenameKey(const std::string& ikey, const std::string& okey)
9 : ikey_(ikey), okey_(okey) {}
10Sample RenameKey::apply(const Sample& sample) const {
11 auto input_array = sample::check_key(sample, ikey_, ArrayType::Any);
12 if (ikey_ == okey_) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected