mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-30 02:38:11 +08:00
fix submodule stubs (#1492)
This commit is contained in:
20
python/mlx/_stub_patterns.txt
Normal file
20
python/mlx/_stub_patterns.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
mlx.core.distributed.__prefix__:
|
||||
from mlx.core import array, Dtype, Device, Stream
|
||||
from mlx.core.distributed import Group
|
||||
from typing import Sequence, Optional, Union
|
||||
|
||||
mlx.core.fast.__prefix__:
|
||||
from mlx.core import array, Dtype, Device, Stream
|
||||
from typing import Sequence, Optional, Union
|
||||
|
||||
mlx.core.linalg.__prefix__:
|
||||
from mlx.core import array, Dtype, Device, Stream
|
||||
from typing import Sequence, Optional, Tuple, Union
|
||||
|
||||
mlx.core.metal.__prefix__:
|
||||
from mlx.core import array, Dtype, Device, Stream
|
||||
from typing import Sequence, Optional, Union
|
||||
|
||||
mlx.core.random.__prefix__:
|
||||
from mlx.core import array, Dtype, Device, Stream
|
||||
from typing import Sequence, Optional, Union
|
@@ -187,7 +187,7 @@ void init_linalg(nb::module_& parent_module) {
|
||||
nb::kw_only(),
|
||||
"stream"_a = nb::none(),
|
||||
nb::sig(
|
||||
"def qr(a: array, *, stream: Union[None, Stream, Device] = None) -> tuple(array, array)"),
|
||||
"def qr(a: array, *, stream: Union[None, Stream, Device] = None) -> Tuple[array, array]"),
|
||||
R"pbdoc(
|
||||
The QR factorization of the input matrix.
|
||||
|
||||
@@ -220,7 +220,7 @@ void init_linalg(nb::module_& parent_module) {
|
||||
nb::kw_only(),
|
||||
"stream"_a = nb::none(),
|
||||
nb::sig(
|
||||
"def svd(a: array, *, stream: Union[None, Stream, Device] = None) -> tuple(array, array, array)"),
|
||||
"def svd(a: array, *, stream: Union[None, Stream, Device] = None) -> Tuple[array, array, array]"),
|
||||
R"pbdoc(
|
||||
The Singular Value Decomposition (SVD) of the input matrix.
|
||||
|
||||
|
Reference in New Issue
Block a user