dq.set_precision
set_precision(precision: Literal['simple', 'double'])
Configure the default floating point precision.
Two options are available:
'simple'
sets default precision tofloat32
andcomplex64
(default setting),'double'
sets default precision tofloat64
andcomplex128
.
Equivalent JAX syntax
This function is equivalent to
if precision == 'simple':
jax.config.update('jax_enable_x64', False)
elif precision == 'double':
jax.config.update('jax_enable_x64', True)
Parameters
-
precision
(string 'simple' or 'double')
–
Default precision.