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

Method ~PyFileReader

python/src/load.cpp:106–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 tell_func_(file.attr("tell")) {}
105
106 ~PyFileReader() {
107 nb::gil_scoped_acquire gil;
108
109 pyistream_.release().dec_ref();
110 readinto_func_.release().dec_ref();
111 seek_func_.release().dec_ref();
112 tell_func_.release().dec_ref();
113 }
114
115 bool is_open() const override {
116 bool out;

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.80

Tested by

no test coverage detected