e564e9df5e6fe95ca8c3b08910eae5fa4261a123,nn_dataflow/core/node_region.py,NodeRegion,node_iter,#NodeRegion#,68

Before Change


            gens.append(xrange(o, o + d))
        cnt = 0
        for tp in itertools.product(*gens):
            coord = PhyDim2(*tp)
            assert self.contains_node(coord)
            cnt += 1
            yield coord

After Change



    def node_iter(self):
        """ Iterate through all absolute node coordinates in the region. """
        for rel_coord in itertools.product(*[range(d) for d in self.dim]):
            yield self.rel2abs(PhyDim2(*rel_coord))

    def rel2abs(self, rel_coordinate):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: stanford-mast/nn_dataflow
Commit Name: e564e9df5e6fe95ca8c3b08910eae5fa4261a123
Time: 2017-09-08
Author: mgao12@stanford.edu
File Name: nn_dataflow/core/node_region.py
Class Name: NodeRegion
Method Name: node_iter


Project Name: stanford-mast/nn_dataflow
Commit Name: 3b779e82c897c2f5d78ff1a001bc8cc9477f4fc2
Time: 2017-04-28
Author: mgao12@stanford.edu
File Name: nn_dataflow/Scheduling.py
Class Name: Scheduling
Method Name: schedule_search


Project Name: stanford-mast/nn_dataflow
Commit Name: e775d7b952188ac451f97d7a876e94ff6cb80235
Time: 2018-07-10
Author: mgao12@stanford.edu
File Name: nn_dataflow/tests/dataflow_test/test_scheduling.py
Class Name: TestScheduling
Method Name: test_schedule_search_ilayout