__init__.py 1.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
14
from .all_gather import all_gather, all_gather_object
15 16 17 18 19 20 21 22 23 24 25 26 27
from .all_reduce import all_reduce
from .broadcast import broadcast
from .reduce import reduce, ReduceOp
from .send import send, isend
from .recv import recv, irecv
from .scatter import scatter
from .batch_isend_irecv import batch_isend_irecv, P2POp
from .reduce_scatter import reduce_scatter
from .all_to_all import alltoall, alltoall_single
from .group import is_initialized, destroy_process_group, get_group

__all__ = [
    "ReduceOp",
28 29
    "all_gather",
    "all_gather_object",
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
    "all_reduce",
    "alltoall",
    "alltoall_single",
    "broadcast",
    "reduce",
    "send",
    "scatter",
    "isend",
    "recv",
    "irecv",
    "batch_isend_irecv",
    "P2POp",
    "reduce_scatter",
    "is_initialized",
    "destroy_process_group",
    "get_group",
]