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

Method PyBufferIterator

python/src/wrap_buffer.cpp:16–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14class PyBufferIterator {
15 public:
16 PyBufferIterator(Buffer& buffer)
17 : buffer_(buffer), iter_(0), size_(buffer.size()) {};
18 py::dict next() {
19 if (iter_ >= size_) {
20 throw py::stop_iteration();

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected