fhelium.benchmarks.suite.polynomial
The degree-twelve power polynomial and its equivalent evaluation methods.
This workload measures polynomial evaluation, not an approximation to a named activation function. Coefficients are in ascending power order on [-1, 1].
COEFFICIENTS
constant View source
python
COEFFICIENTS = (0.01, 0.2, -0.3, 0.125, -0.0625, 0.03125, -0.015625, 0.0078125, -0.00390625, 0.001953125, -0.0009765625, 0.00048828125, -0.000244140625)1
POLYNOMIAL
constant View source
python
POLYNOMIAL = PolynomialApproximation(basis='power', coefficients=COEFFICIENTS, domain=(-1.0, 1.0), name='dense-power-d12')1
METHODS
constant View source
python
METHODS = {'balanced': BalancedPowerEvaluator(), 'horner': HornerPowerEvaluator(), 'paterson_stockmeyer': PatersonStockmeyerPowerEvaluator(baby_step=4)}1
definition
function View source
python
def definition() -> dict: ...1