handlers.py 446 B

12345678910111213141516
  1. #!/usr/bin/env python3
  2. # Copyright (c) Facebook, Inc. and its affiliates.
  3. # All rights reserved.
  4. #
  5. # This source code is licensed under the BSD-style license found in the
  6. # LICENSE file in the root directory of this source tree.
  7. # Multiprocessing error-reporting module
  8. from torch.distributed.elastic.multiprocessing.errors.error_handler import ErrorHandler
  9. __all__ = ['get_error_handler']
  10. def get_error_handler():
  11. return ErrorHandler()