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

Method PyFileReader

python/src/load.cpp:100–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98class PyFileReader : public mx::io::Reader {
99 public:
100 PyFileReader(nb::object file)
101 : pyistream_(file),
102 readinto_func_(file.attr("readinto")),
103 seek_func_(file.attr("seek")),
104 tell_func_(file.attr("tell")) {}
105
106 ~PyFileReader() {
107 nb::gil_scoped_acquire gil;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected