Skip to content

numeric_stats

NumericStats

Bases: BaseTensorStats

Source code in src/finch/autoschedule/tensor_stats/numeric_stats.py
class NumericStats(BaseTensorStats):
    @abstractmethod
    def estimate_non_fill_values(self, over: Iterable[Field] = ()) -> float:
        """
        Return an estimate on the number of non-fill values. If `over` lists
        fields, estimate the largest number of non-fill values in any slice
        which fixes those fields instead.
        """
        ...

    @abstractmethod
    def get_embedding(self) -> np.ndarray:
        """
        Returns vector embedding for the stat.
        """
        ...

estimate_non_fill_values(over=()) abstractmethod

Return an estimate on the number of non-fill values. If over lists fields, estimate the largest number of non-fill values in any slice which fixes those fields instead.

Source code in src/finch/autoschedule/tensor_stats/numeric_stats.py
@abstractmethod
def estimate_non_fill_values(self, over: Iterable[Field] = ()) -> float:
    """
    Return an estimate on the number of non-fill values. If `over` lists
    fields, estimate the largest number of non-fill values in any slice
    which fixes those fields instead.
    """
    ...

get_embedding() abstractmethod

Returns vector embedding for the stat.

Source code in src/finch/autoschedule/tensor_stats/numeric_stats.py
@abstractmethod
def get_embedding(self) -> np.ndarray:
    """
    Returns vector embedding for the stat.
    """
    ...