tf.keras.config.set_intx

Sets the default integer dtype.

It can also be set with the "intx" field of ~/.keras/keras.json. On the JAX backend, "int64" needs keras.config.set_x64_mode("explicit_x64"): in "off", JAX computes in 32 bits.

value String; "int32" or "int64".

Example:

keras.config.set_intx("int64")
keras.config.intx()
'int64'
# Set it back to int32
keras.config.set_intx("int32")

ValueError In case of invalid value.