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

Method PyFileWriter

python/src/load.cpp:330–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328class PyFileWriter : public mx::io::Writer {
329 public:
330 PyFileWriter(nb::object file)
331 : pyostream_(file),
332 write_func_(file.attr("write")),
333 seek_func_(file.attr("seek")),
334 tell_func_(file.attr("tell")) {}
335
336 ~PyFileWriter() {
337 nb::gil_scoped_acquire gil;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected