mirror of
https://github.com/wassname/ray.git
synced 2026-08-20 12:40:44 +08:00
Java doc: "Ray Core Walkthrough" page (#8595)
This commit is contained in:
@@ -111,9 +111,9 @@ Let's deploy the new version to the same endpoint. Don't forget to set
|
||||
To query the backend via Python API, we can use ``serve.get_handle`` to receive
|
||||
a handle to the corresponding "endpoint". To enqueue a query, you can call
|
||||
``handle.remote(argument_name=argument_value)``. This call returns immediately
|
||||
with a :ref:`Ray ObjectRef<ray-object-ids>`. You can call `ray.get` to retrieve
|
||||
with a :ref:`Ray ObjectRef<ray-object-refs>`. You can call `ray.get` to retrieve
|
||||
the result.
|
||||
|
||||
.. literalinclude:: ../../../../python/ray/serve/examples/doc/tutorial_batch.py
|
||||
:start-after: __doc_query_handle_begin__
|
||||
:end-before: __doc_query_handle_end__
|
||||
:end-before: __doc_query_handle_end__
|
||||
|
||||
Reference in New Issue
Block a user