// Copyright © 2023 Apple Inc. #pragma once #include #include #include #include "mlx/ops.h" namespace py = pybind11; using namespace mlx::core; using DictOrArray = std::variant>; DictOrArray mlx_load_helper(py::object file, StreamOrDevice s); void mlx_save_helper( py::object file, array a, std::optional retain_graph = std::nullopt); void mlx_savez_helper( py::object file, py::args args, const py::kwargs& kwargs, bool compressed = false);