mirror of
https://github.com/ml-explore/mlx.git
synced 2025-11-03 09:58:17 +08:00
Add docs for the distributed namespace (#1184)
This commit is contained in:
committed by
GitHub
parent
578842954c
commit
0163a8e57a
@@ -69,13 +69,13 @@ void init_distributed(nb::module_& parent_module) {
|
||||
)pbdoc");
|
||||
|
||||
m.def(
|
||||
"all_reduce_sum",
|
||||
&distributed::all_reduce_sum,
|
||||
"all_sum",
|
||||
&distributed::all_sum,
|
||||
"x"_a,
|
||||
nb::kw_only(),
|
||||
"group"_a = nb::none(),
|
||||
nb::sig(
|
||||
"def all_reduce_sum(x: array, *, group: Optional[Group] = None) -> array"),
|
||||
"def all_sum(x: array, *, group: Optional[Group] = None) -> array"),
|
||||
R"pbdoc(
|
||||
All reduce sum.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user