<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/quantizers/quantizers.py#L584-L594) |

    tf.keras.quantizers.compute_float8_scale(
        amax, scale, dtype_max, margin=0
    )