|TensorFlow 2.0 version||View source on GitHub|
Loss scale with a fixed value.
The loss scale is not updated for the lifetime of instances of this class. A given instance of this class always returns the same number when called.
Creates the fixed loss scale.
loss_scale_value: A Python float. Its ideal value varies depending on models to run. Choosing a too small loss_scale might affect model quality; a too big loss_scale might cause inf or nan. There is no single right loss_scale to apply. There is no harm choosing a relatively big number as long as no nan or inf is encountered in training.
ValueError: If loss_scale is less than 1.
from_config( cls, config )
Creates the LossScale from its config.