d61974b93e3231871e5764d6203cb15b962f1c1d,nn_dataflow/LoopBlockingScheme.py,LoopBlockingScheme,get_fetches,#LoopBlockingScheme#,203

Before Change


        """
        Get number of top-level-hierarchy fetches of each data category.
        """
        return self.fetches if self.is_valid() else None

    def get_cost(self, cost):
        """
        Get the total cost of loop blocking.

After Change


        """
        Get number of top-level-hierarchy fetches of each data category.
        """
        if not self.is_valid():
            return None

        raw_acc = [0] * de.NUM
        raw_acc[de.FIL] = self.tbp
        raw_acc[de.IFM] = self.top
        raw_acc[de.OFM] = self.tip

        return [ra / r for ra, r in zip(raw_acc, self.reuse[self.BL.GBUF])]

    def get_cost(self, cost):
        """
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: stanford-mast/nn_dataflow
Commit Name: d61974b93e3231871e5764d6203cb15b962f1c1d
Time: 2017-05-14
Author: mgao12@stanford.edu
File Name: nn_dataflow/LoopBlockingScheme.py
Class Name: LoopBlockingScheme
Method Name: get_fetches


Project Name: stanford-mast/nn_dataflow
Commit Name: f4f52d6ab4104d5ee43799f8120b2b7b67d0d10a
Time: 2017-05-18
Author: mgao12@stanford.edu
File Name: nn_dataflow/LoopBlockingScheme.py
Class Name: LoopBlockingScheme
Method Name: get_access


Project Name: stanford-mast/nn_dataflow
Commit Name: f4f52d6ab4104d5ee43799f8120b2b7b67d0d10a
Time: 2017-05-18
Author: mgao12@stanford.edu
File Name: nn_dataflow/LoopBlockingScheme.py
Class Name: LoopBlockingScheme
Method Name: get_top_level_fetch