Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
14
Sample 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
21
int64_t Perm::size() const {
22
return perm_.size();
Callers
10
apply
Method · 0.45
dynamic_batch_
Method · 0.45
next
Method · 0.45
background_buffer_fetch_
Method · 0.45
next
Method · 0.45
reset
Method · 0.45
next
Method · 0.45
~Prefetch
Method · 0.45
next
Method · 0.45
reset
Method · 0.45
Calls
1
size
Method · 0.45
Tested by
no test coverage detected