Skip to content

Commit 2832e32

Browse files
lwfacebook-github-bot
authored andcommitted
[TensorPipe] Avoid using deprecated alias for error (#48168)
Summary: Pull Request resolved: #48168 TensorPipe deduplicated a set of error (which existed both under the ::transport and the ::channel namespaces). The old names were kept as aliases but we should migrate to the new ones. ghstack-source-id: 116989010 Test Plan: CI Reviewed By: beauby Differential Revision: D25051218 fbshipit-source-id: caef27f1a0ff0e6f0b8b09fa92d6f79641c1e17a
1 parent df0ae24 commit 2832e32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

torch/csrc/distributed/rpc/tensorpipe_agent.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ void TensorPipeAgent::respond(std::shared_ptr<tensorpipe::Pipe>& pipe) {
498498
// find a better way, Perhaps sending an empty message?
499499
if ((error.isOfType<tensorpipe::PipeClosedError>() &&
500500
!rpcAgentRunning_.load()) ||
501-
error.isOfType<tensorpipe::transport::EOFError>()) {
501+
error.isOfType<tensorpipe::EOFError>()) {
502502
// This is expected.
503503
} else {
504504
LOG(WARNING)

0 commit comments

Comments
 (0)