elasticai.creator.nn.fixed_point.two_complement_fixed_point_config#

Module Contents#

Classes#

Data#

T

API#

elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T#

‘TypeVar(…)’

class elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.ConvertableToFixedPointValues[source]#

Bases: typing.Protocol[elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T]

round() elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T[source]#
int() elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T[source]#
float() elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T[source]#
__gt__(other: Union[int, float, elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T]) elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T[source]#
__lt__(other: Union[int, float, elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T]) elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T[source]#
__or__(other: elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T) elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T[source]#
__mul__(other: Union[int, elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T, float]) elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T[source]#
__truediv__(other: Union[int, float]) elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T[source]#
class elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.FixedPointConfig[source]#
total_bits: int#

None

frac_bits: int#

None

property minimum_as_integer: int#
property maximum_as_integer: int#
property minimum_as_rational: float#
property maximum_as_rational: float#
integer_out_of_bounds(number: elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T) elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T[source]#
rational_out_of_bounds(number: elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T) elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T[source]#
as_integer(number: float | int | elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T) int | elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T[source]#
as_rational(number: float | int | elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T) float | elasticai.creator.nn.fixed_point.two_complement_fixed_point_config.T[source]#