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

Class LoadFile

mlx/data/op/LoadFile.h:17–29  ·  view source on GitHub ↗

Operation that will load a file into memory -- similar to `OpReadFromTAR` but loads directly from the filesystem. This is useful for testing the in-memory path.

Source from the content-addressed store, hash-verified

15/// but loads directly from the filesystem. This is useful for testing the
16/// in-memory path.
17class LoadFile : public KeyTransformOp {
18 public:
19 LoadFile(
20 const std::string& ikey,
21 const std::filesystem::path& prefix = "",
22 const std::string& okey = "");
23
24 virtual std::shared_ptr<Array> apply_key(
25 const std::shared_ptr<const Array>& src) const override;
26
27 private:
28 std::filesystem::path prefix_;
29};
30
31} // namespace op
32} // namespace data

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected