Returns the default float type, as a string. E.g. 'float16', 'float32', 'float64'. Returns: String, the current default float type. Example: ```python keras.backend.floatx() >>> 'float32' ```
()
| 59 | |
| 60 | @keras_export('keras.backend.floatx') |
| 61 | def floatx(): |
| 62 | """Returns the default float type, as a string. |
| 63 | |
| 64 | E.g. 'float16', 'float32', 'float64'. |
| 65 | |
| 66 | Returns: |
| 67 | String, the current default float type. |
| 68 | |
| 69 | Example: |
| 70 | ```python |
| 71 | keras.backend.floatx() >>> 'float32' |
| 72 | ``` |
| 73 | """ |
| 74 | return _FLOATX |
| 75 | |
| 76 | |
| 77 | @keras_export('keras.backend.set_floatx') |
no outgoing calls
no test coverage detected