[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.keras.backend.set_floatx\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/keras-team/keras/tree/v2.14.0/keras/backend_config.py#L82-L114) |\n\nSets the default float type. \n\n tf.keras.backend.set_floatx(\n value\n )\n\n| **Note:** It is not recommended to set this to float16 for training, as this will likely cause numeric stability issues. Instead, mixed precision, which is using a mix of float16 and float32, can be used by calling `tf.keras.mixed_precision.set_global_policy('mixed_float16')`. See the [mixed precision guide](https://www.tensorflow.org/guide/keras/mixed_precision) for details.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|---------|---------------------------------------------------|\n| `value` | String; `'float16'`, `'float32'`, or `'float64'`. |\n\n\u003cbr /\u003e\n\n#### Example:\n\n tf.keras.backend.floatx()\n 'float32'\n tf.keras.backend.set_floatx('float64')\n tf.keras.backend.floatx()\n 'float64'\n tf.keras.backend.set_floatx('float32')\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|--------------|---------------------------|\n| `ValueError` | In case of invalid value. |\n\n\u003cbr /\u003e"]]