blob: a0818a85bd50622fb4b1f005ac18b71f73cbc4ba [file] [log] [blame]
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <torch/csrc/distributed/c10d/ParamCommsUtils.hpp>
namespace torch {
ParamCommsDebugInfo::ParamCommsDebugInfo(
int rank,
std::string&& colName,
int inSize,
int outSize,
at::ScalarType dType,
std::vector<int64_t> inSplitSizes,
std::vector<int64_t> outSplitSizes,
int worldSize)
: rank_(rank),
worldSize_(worldSize),
columnName_(colName),
inMessageSize_(inSize),
outMessageSize_(outSize),
dType_(dType),
inputSplitSizes_(std::move(inSplitSizes)),
outputSplitSizes_(std::move(outSplitSizes)) {}
} // namespace torch