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

Method get

mlx/data/buffer/Perm.cpp:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14Sample Perm::get(int64_t idx) const {
15 if (idx < 0 || idx >= perm_.size()) {
16 throw std::runtime_error("Perm: index out of range");
17 }
18 return op_->get(perm_[idx]);
19}
20
21int64_t Perm::size() const {
22 return perm_.size();

Callers 10

applyMethod · 0.45
dynamic_batch_Method · 0.45
nextMethod · 0.45
nextMethod · 0.45
resetMethod · 0.45
nextMethod · 0.45
~PrefetchMethod · 0.45
nextMethod · 0.45
resetMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected