set_precise_mode#

ivy.set_precise_mode(mode)[source]#

Set the mode of whether to use a promotion table that avoids any precision loss or a compute efficient table that avoids most wider-than- necessary promotions.

Return type:

None

Parameter#

mode

boolean whether to use high precision promotion table

Examples

>>> ivy.set_precise_mode(False)
>>> ivy.precise_mode
False
>>> ivy.set_precise_mode(True)
>>> ivy.precise_mode
True