213d3894cafe27b0d2a252ff7f310118c4d4ff6e,python/ray/serve/examples/echo_pipeline.py,,,#,56
Before Change
handle3 = serve.get_handle("echo_v3")
handle4 = serve.get_handle("echo_v4")
start = time.time()
print("Start firing to the pipeline: {} s".format(time.time()))
handle1_oid = handle1.remote(response="hello")
handle4_oid = handle4.remote(
relay1=handle2.remote(relay=handle1_oid),
relay2=handle3.remote(relay=handle1_oid))
print("Firing ended now waiting for the result,"
"time taken: {} s".format(time.time() - start))
result = ray.get(handle4_oid)
print("Result: {}, time taken: {} s".format(result, time.time() - start))
After Change
serve.create_endpoint("echo_v1", "/echo_v1")
serve.create_backend(echo_v1, "echo_v1")
serve.split("echo_v1", {"echo_v1": 1.0})
def echo_v2(_, relay=""):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: ray-project/ray
Commit Name: 213d3894cafe27b0d2a252ff7f310118c4d4ff6e
Time: 2020-04-20
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/examples/echo_pipeline.py
Class Name:
Method Name:
Project Name: facebookresearch/ParlAI
Commit Name: ee0d111d02961a89679e9128b46b40c1df98efb6
Time: 2018-06-14
Author: jaseweston@gmail.com
File Name: parlai/scripts/detect_offensive_language.py
Class Name:
Method Name: detect
Project Name: AllenCellModeling/pytorch_fnet
Commit Name: cd6ea74225b7c29238de13229aa1347db4098fea
Time: 2018-01-29
Author: chek.o@outlook.com
File Name: train_model.py
Class Name:
Method Name: main