3d8c1cbae6a4172ad3fd66b387b846634513f7f2,release/long_running_tests/workloads/serve.py,,echo,#Any#,32
Before Change
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)]
config = {"num_replicas": 30, "max_batch_size": 16}
client.create_backend("echo:v1", echo, config=config)
After Change
@serve.accept_batch
def echo(requests_batch):
time.sleep(0.01) // Sleep for 10ms
return ["hi" for _ in range(len(requests_batch))]
config = {"num_replicas": 7, "max_batch_size": 16}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: ray-project/ray
Commit Name: 3d8c1cbae6a4172ad3fd66b387b846634513f7f2
Time: 2020-12-11
Author: simon.mo@hey.com
File Name: release/long_running_tests/workloads/serve.py
Class Name:
Method Name: echo
Project Name: DT42/BerryNet
Commit Name: 1a4afd3eb200e41706b67497bdc94261263147ee
Time: 2018-02-19
Author: bofu@dt42.io
File Name: berrynet/engine/movidius.py
Class Name:
Method Name: process_inceptionv3_output
Project Name: deepmind/sonnet
Commit Name: 0c8a946c8ff5b85f112361dc9a4fb29cf9297ff8
Time: 2019-01-29
Author: noreply@google.com
File Name: sonnet/python/modules/basic_rnn.py
Class Name: BidirectionalRNN
Method Name: _build