#pragma once #include #include #include #include namespace torch { namespace distributed { namespace rpc { py::object toPyObj(const Message& message); std::shared_ptr pyRpcBuiltin( RpcAgent& agent, const WorkerInfo& dst, const std::string& opName, const py::args& args, const py::kwargs& kwargs); std::shared_ptr pyRpcPythonUdf( RpcAgent& agent, const WorkerInfo& dst, std::string& pickledPythonUDF, std::vector& tensors); PyRRef pyRemoteBuiltin( RpcAgent& agent, const WorkerInfo& dst, const std::string& opName, const py::args& args, const py::kwargs& kwargs); PyRRef pyRemotePythonUdf( RpcAgent& agent, const WorkerInfo& dst, std::string& pickledPythonUDF, std::vector& tensors); } // namespace rpc } // namespace distributed } // namespace torch