parameters: (self, server_def)
docstring: Enable distributed collective ops with an appropriate server_def.
  
      Args:
        server_def: A tensorflow::ServerDef proto. Enables execution on remote
          devices.
  
      Raises:
        ValueError: if server_def is None.
        RuntimeError: if this method is not called at program startup.
docstring_summary: Enable distributed collective ops with an appropriate server_def.
docstring_tokens: Enable distributed collective ops with an appropriate server_def .
function: def enable_collective_ops(self, server_def):
      """Enable distributed collective ops with an appropriate server_def.
  
      Args:
        server_def: A tensorflow::ServerDef proto. Enables execution on remote
          devices.
  
      Raises:
        ValueError: if server_def is None.
        RuntimeError: if this method is not called at program startup.
      """
      if not server_def:
        raise ValueError("server_def is None.")
  
      if self._context_handle is not None:
        raise RuntimeError("Collective ops must be enabled at program startup")
  
      self._collective_ops_server_def = server_def
function_tokens: def enable_collective_ops ( self , server_def ) : if not server_def : raise ValueError ( "server_def is None." ) if self . _context_handle is not None : raise RuntimeError ( "Collective ops must be enabled at program startup" ) self . _collective_ops_server_def = server_def