Creates a server based on the given `server_def`, and stores it in `*out_server`. Returns OK on success, otherwise returns an error.
| 70 | // Creates a server based on the given `server_def`, and stores it in |
| 71 | // `*out_server`. Returns OK on success, otherwise returns an error. |
| 72 | Status NewServer(const ServerDef& server_def, |
| 73 | std::unique_ptr<ServerInterface>* out_server) { |
| 74 | ServerFactory* factory; |
| 75 | TF_RETURN_IF_ERROR(ServerFactory::GetFactory(server_def, &factory)); |
| 76 | return factory->NewServer(server_def, out_server); |
| 77 | } |
| 78 | |
| 79 | } // namespace tensorflow |