mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 12:06:42 +08:00
comment
This commit is contained in:
parent
1baff8c2b4
commit
51322b90e3
@ -2929,12 +2929,12 @@ void init_ops(py::module_& m) {
|
||||
"load",
|
||||
&mlx_load_helper,
|
||||
"file"_a,
|
||||
"format"_a = none,
|
||||
py::pos_only(),
|
||||
"format"_a = none,
|
||||
py::kw_only(),
|
||||
"stream"_a = none,
|
||||
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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user