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

Method LoadImage

mlx/data/op/LoadImage.cpp:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace data {
10namespace op {
11LoadImage::LoadImage(
12 const std::string& ikey,
13 const std::string& prefix,
14 bool info,
15 const std::string& format,
16 bool from_memory,
17 const std::string& okey)
18 : KeyTransformOp(ikey, okey),
19 prefix_(prefix),
20 info_(info),
21 format_(format),
22 from_memory_(from_memory) {}
23std::shared_ptr<Array> LoadImage::apply_key(
24 const std::shared_ptr<const Array>& src) const {
25 std::filesystem::path path;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected