예제 #1
0
 def f(self):
     ray.show_in_dashboard("test")
     return os.getpid()
예제 #2
0
파일: serve.py 프로젝트: yynst2/ray
def echo(_):
    time.sleep(0.01)  # Sleep for 10ms
    ray.show_in_dashboard(str(serve.context.batch_size),
                          key="Current batch size")
    return ["hi {}".format(i) for i in range(serve.context.batch_size)]