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

Method get

mlx/data/buffer/FromVector.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25Sample FromVector::get(int64_t idx) const {
26 if (idx < 0 || idx >= buffer_.size()) {
27 throw std::out_of_range("FromVector: index out of range");
28 }
29 return buffer_[idx];
30}
31
32int64_t FromVector::size() const {
33 return buffer_.size();

Callers 1

FromVectorMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected