Home
last modified time | relevance | path

Searched refs:loss_scale_reciprocal (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/python/training/experimental/
Dloss_scale_optimizer.py144 loss_scale_reciprocal = 1 / loss_scale
146 None if g is None else self._scale_grad(g, loss_scale_reciprocal)
150 def _scale_grad(self, grad, loss_scale_reciprocal): argument
152 grad_vals = grad.values * loss_scale_reciprocal
154 return grad * loss_scale_reciprocal
/external/tensorflow/tensorflow/python/keras/mixed_precision/
Dloss_scale_optimizer.py671 loss_scale_reciprocal = 1. / self.loss_scale
673 _multiply_gradient(g, loss_scale_reciprocal) if g is not None else None