set_min_base#

ivy.set_min_base(val)[source]#

Set the global minimum base used by ivy for numerically stable power raising.

Parameters:

val (float) – The new value to set the minimum base to.

Return type:

None

Examples

Retrieve the minimum base >>> x = ivy.min_base >>> print(x) 1e-05

>>> # Set the minimum base to 1e-04:
>>> ivy.set_min_base(1e-04)

Retrieve the minimum base: >>> y = ivy.min_base >>> print(y) 1e-04

>>> # unset the min_base
>>> ivy.unset_min_base()