ef4353bd24b9d781c2dfa9cd2146d9b87e63b6f1,nn_dataflow/Scheduling.py,Scheduling,schedule_search,#Scheduling#Any#Any#,103

Before Change


                                            options):
            // Ifmap partitioning.
            part_src = condition.part_src
            if not all(sd <= mrsd for sd, mrsd
                       in zip(part_src.dim(), mem_region_src.dim)):
                raise ValueError("Scheduling: ifmap partitioning {} is "
                                 "invalid within memory region {}."
                                 .format(part_src, str(mem_region_src)))

            // Ofmap partitioning.
            part_dst = Partition.get_ofmap_part(part, mem_region_dst)

            // Partition NoC hop cost.
            unit_nhops = Partition.part_layer_unit_nhops(
                self.layer, self.batch_size, part,

After Change


                             "source memory nodes.")

        // Filter nodes. All memory nodes can store filters. Deduplicate.
        filter_node_coord_list = [c for c in mem_region_src.node_iter()] \
                               + [c for c in mem_region_dst.node_iter()]
        filter_node_coord_list = list(set(filter_node_coord_list))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: stanford-mast/nn_dataflow
Commit Name: ef4353bd24b9d781c2dfa9cd2146d9b87e63b6f1
Time: 2017-05-01
Author: mgao12@stanford.edu
File Name: nn_dataflow/Scheduling.py
Class Name: Scheduling
Method Name: schedule_search


Project Name: allenai/allennlp
Commit Name: 5f6c9b8ca29b56ab2d2e1acfc38ea61001b92c4b
Time: 2018-02-07
Author: mattg@allenai.org
File Name: allennlp/common/testing/model_test_case.py
Class Name: ModelTestCase
Method Name: ensure_batch_predictions_are_consistent


Project Name: pytorch/fairseq
Commit Name: de977736f91d23c53e6a60c45822973a615daa15
Time: 2020-11-02
Author: shajain@fb.com
File Name: fairseq/models/bart/hub_interface.py
Class Name: BARTHubInterface
Method Name: fill_mask