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

Method RemoveValue

mlx/data/op/RemoveValue.cpp:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace data {
8namespace op {
9RemoveValue::RemoveValue(
10 const std::string& key,
11 const std::string& size_key,
12 int dim,
13 double value,
14 double pad)
15 : key_(key), size_key_(size_key), dim_(dim), value_(value), pad_(pad) {}
16
17Sample RemoveValue::apply(const Sample& sample) const {
18 auto array = sample::check_key(sample, key_, ArrayType::Any);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected