#include <torch/csrc/distributed/autograd/rpc_messages/rref_backward_resp.h>

namespace torch::distributed::autograd {

c10::intrusive_ptr<rpc::Message> RRefBackwardResp::toMessageImpl() && {
  return c10::make_intrusive<rpc::Message>(
      std::vector<char>{},
      std::vector<torch::Tensor>{},
      rpc::MessageType::RREF_BACKWARD_RESP);
}

std::unique_ptr<RRefBackwardResp> RRefBackwardResp::fromMessage(
    const rpc::Message& message) {
  TORCH_INTERNAL_ASSERT(message.type() == rpc::MessageType::RREF_BACKWARD_RESP);
  return std::unique_ptr<RRefBackwardResp>();
}

} // namespace torch::distributed::autograd
