tf.keras.backend.floatx
Stay organized with collections
Save and categorize content based on your preferences.
Returns the default float type, as a string.
View aliases
Compat aliases for migration
See
Migration guide for
more details.
`tf.compat.v1.keras.backend.floatx`
tf.keras.backend.floatx()
E.g. 'float16'
, 'float32'
, 'float64'
.
Returns |
String, the current default float type.
|
Example:
tf.keras.backend.floatx()
'float32'
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.keras.backend.floatx\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/keras-team/keras/tree/v2.13.1/keras/backend_config.py#L66-L79) |\n\nReturns the default float type, as a string.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n\\`tf.compat.v1.keras.backend.floatx\\`\n\n\u003cbr /\u003e\n\n tf.keras.backend.floatx()\n\nE.g. `'float16'`, `'float32'`, `'float64'`.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| String, the current default float type. ||\n\n\u003cbr /\u003e\n\n#### Example:\n\n tf.keras.backend.floatx()\n 'float32'"]]