mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
This reverts commit bb1424d46e656dfcdd4c12efe58ada9f1720c4d8. Reverted https://github.com/pytorch/pytorch/pull/111072 on behalf of https://github.com/facebook-github-bot due to Diff reverted internally ([comment](https://github.com/pytorch/pytorch/pull/111072#issuecomment-1765399829))
19 lines
427 B
C++
19 lines
427 B
C++
#include <c10/util/Logging.h>
|
|
#include <fmt/format.h>
|
|
#include <torch/csrc/distributed/c10d/Backend.hpp>
|
|
|
|
namespace c10d {
|
|
|
|
Backend::Backend(int rank, int size)
|
|
: rank_(rank), size_(size), dist_debug_level_(debug_level()) {
|
|
C10_LOG_API_USAGE_ONCE("c10d.backend");
|
|
}
|
|
|
|
Backend::~Backend() = default;
|
|
|
|
void Backend::init() {
|
|
C10_LOG_API_USAGE_ONCE(fmt::format("c10d.backend_{}", getBackendName()));
|
|
}
|
|
|
|
} // namespace c10d
|