Revert "add supports_coalescing property in c10d::Backend to determine whether backend supports coalescing (#135338)"

This reverts commit e5574445b01f264e57653a8a42af1118e89acc9a.

Reverted https://github.com/pytorch/pytorch/pull/135338 on behalf of https://github.com/ZainRizvi due to Sorry but this is failing internally. Please see D65663382 for more details ([comment](https://github.com/pytorch/pytorch/pull/135338#issuecomment-2465911854))
This commit is contained in:
PyTorch MergeBot
2024-11-08 23:52:49 +00:00
parent ea0f60ecfa
commit 1400fedf76
5 changed files with 8 additions and 33 deletions

View File

@ -811,7 +811,7 @@ class TORCH_API ProcessGroup : public torch::CustomClassHolder {
TORCH_CHECK(
backendTypeToBackend_.find(backendType_) != backendTypeToBackend_.end(),
"Could not find the default backend type ",
uint16_t(backendType_),
backendType_,
" for Process Group with name ",
getBackendName(),
".");
@ -832,9 +832,7 @@ class TORCH_API ProcessGroup : public torch::CustomClassHolder {
TORCH_CHECK(
backendTypeToBackend_.find(backendType) != backendTypeToBackend_.end(),
"Could not find backend type ",
uint16_t(backendType),
" for Process Group with name ",
backendTypeToString(backendType),
backendType,
".");
return backendTypeToBackend_.at(backendType);
}