Skip to content

numeric_stats

NumericStats

Bases: BaseTensorStats

Source code in src/finch/autoschedule/tensor_stats/numeric_stats.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
class NumericStats(BaseTensorStats):
    @abstractmethod
    def estimate_non_fill_values(self) -> float:
        """
        Return an estimate on the number of non-fill values.
        """
        ...

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

estimate_non_fill_values() abstractmethod

Return an estimate on the number of non-fill values.

Source code in src/finch/autoschedule/tensor_stats/numeric_stats.py
 9
10
11
12
13
14
@abstractmethod
def estimate_non_fill_values(self) -> float:
    """
    Return an estimate on the number of non-fill values.
    """
    ...

get_embedding() abstractmethod

Returns vector embedding for the stat.

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