xref: /aosp_15_r20/external/pytorch/torch/distributed/elastic/multiprocessing/errors/handlers.py (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1#!/usr/bin/env python3
2# mypy: allow-untyped-defs
3
4# Copyright (c) Facebook, Inc. and its affiliates.
5# All rights reserved.
6#
7# This source code is licensed under the BSD-style license found in the
8# LICENSE file in the root directory of this source tree.
9# Multiprocessing error-reporting module
10
11
12from torch.distributed.elastic.multiprocessing.errors.error_handler import ErrorHandler
13
14
15__all__ = ["get_error_handler"]
16
17
18def get_error_handler():
19    return ErrorHandler()
20