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

Method ~PyStream

python/src/wrap_stream.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 next_ = iterable_factory_().attr("__iter__")().attr("__next__");
29 }
30 ~PyStream() {
31 py::gil_scoped_acquire gil;
32
33 iterable_factory_.release().dec_ref();
34 next_.release().dec_ref();
35 }
36
37 virtual void reset() {
38 py::gil_scoped_acquire gil;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected