bb494a3be8387467d892f10a8dbba4d2e1a68a3b,python/ray/serve/policy.py,FixedPackingPolicyQueue,__init__,#FixedPackingPolicyQueue#Any#,142

Before Change


    async def __init__(self, packing_num=3):
        // Saves the information about last assigned
        // backend for every endpoint
        self.fixed_packing_iterator_map = {}
        self.packing_num = packing_num
        await super().__init__()

    async def set_traffic(self, endpoint, traffic_dict):

After Change


    

    def __init__(self, traffic_dict):
        self.backend_names = list(traffic_dict.keys())
        self.backend_weights = list(traffic_dict.values())

    async def flush(self, endpoint_queue, backend_queues):
        if len(self.backend_names) == 0:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ray-project/ray
Commit Name: bb494a3be8387467d892f10a8dbba4d2e1a68a3b
Time: 2020-05-12
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/policy.py
Class Name: FixedPackingPolicyQueue
Method Name: __init__


Project Name: Hironsan/anago
Commit Name: 0c0b8a1f0bd4940b1f0d700074280396764f23ae
Time: 2018-05-29
Author: hiroki.nakayama.py@gmail.com
File Name: anago/utils.py
Class Name: Vocabulary
Method Name: __init__


Project Name: microsoft/nni
Commit Name: 8c8db3746c9ef6b526497c973277bab4b458d4ed
Time: 2021-02-02
Author: Yuge.Zhang@microsoft.com
File Name: nni/retiarii/converter/graph_gen.py
Class Name: GraphConverter
Method Name: _handle_layerchoice