"""
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):
"""