mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 11:18:06 +08:00
comment
This commit is contained in:
parent
1baff8c2b4
commit
51322b90e3
@ -2929,12 +2929,12 @@ void init_ops(py::module_& m) {
|
|||||||
"load",
|
"load",
|
||||||
&mlx_load_helper,
|
&mlx_load_helper,
|
||||||
"file"_a,
|
"file"_a,
|
||||||
"format"_a = none,
|
|
||||||
py::pos_only(),
|
py::pos_only(),
|
||||||
|
"format"_a = none,
|
||||||
py::kw_only(),
|
py::kw_only(),
|
||||||
"stream"_a = none,
|
"stream"_a = none,
|
||||||
R"pbdoc(
|
R"pbdoc(
|
||||||
load(file: str, format: Optional[str] = None, /, *, stream: Union[None, Stream, Device] = None) -> Union[array, Dict[str, array]]
|
load(file: str, /, format: Optional[str] = None, *, stream: Union[None, Stream, Device] = None) -> Union[array, Dict[str, array]]
|
||||||
|
|
||||||
Load array(s) from a binary file in ``.npy``, ``.npz``, or ``.safetensors`` format.
|
Load array(s) from a binary file in ``.npy``, ``.npz``, or ``.safetensors`` format.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user