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

Method Perm

mlx/data/buffer/Perm.cpp:9–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace buffer {
8
9Perm::Perm(const std::shared_ptr<Buffer>& op, const std::vector<int64_t>& perm)
10 : op_(op) {
11 set_perm_(perm);
12}
13
14Sample Perm::get(int64_t idx) const {
15 if (idx < 0 || idx >= perm_.size()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected