You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

distributed.py 681 B

123456789101112131415161718192021222324
  1. # -*- coding: utf-8 -*-
  2. # MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
  3. #
  4. # Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
  5. #
  6. # Unless required by applicable law or agreed to in writing,
  7. # software distributed under the License is distributed on an
  8. # "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. # pylint: disable=redefined-builtin
  10. from ..distributed.functional import (
  11. all_gather,
  12. all_reduce_max,
  13. all_reduce_min,
  14. all_reduce_sum,
  15. all_to_all,
  16. broadcast,
  17. collective_comm,
  18. gather,
  19. reduce_scatter_sum,
  20. reduce_sum,
  21. remote_recv,
  22. remote_send,
  23. scatter,
  24. )