Home
last modified time | relevance | path

Searched refs:weighted_losses (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/python/keras/utils/
Dlosses_utils.py171 def reduce_weighted_loss(weighted_losses, argument
175 loss = weighted_losses
177 loss = math_ops.reduce_sum(weighted_losses)
181 loss = _safe_mean(loss, num_replicas * _num_elements(weighted_losses))
229 weighted_losses = math_ops.multiply(losses, sample_weight)
231 loss = reduce_weighted_loss(weighted_losses, reduction)
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_eager.py135 weighted_losses = None
139 weighted_losses = loss_fn(targets[i], outs[i], sample_weight=weights)
143 output_loss = losses_utils.reduce_weighted_loss(weighted_losses)
158 if weighted_losses is not None:
159 aggregated_output_loss = output_loss_metrics[i](weighted_losses)
Dtraining.py1674 weighted_losses = None
1678 weighted_losses = loss_fn(
1684 weighted_losses, reduction=current_loss_reduction)
1696 if weighted_losses is not None:
1699 self._output_loss_metrics[i], weighted_losses)
/external/tensorflow/tensorflow/python/ops/losses/
Dlosses_impl.py188 weighted_losses = math_ops.multiply(losses, weights)
190 loss = weighted_losses
192 loss = math_ops.reduce_sum(weighted_losses)
589 weighted_losses = math_ops.multiply(term1 - term2, weights)
590 loss = math_ops.reduce_sum(weighted_losses)
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Dhead.py489 weighted_losses = []
491 weighted_losses.append(math_ops.multiply(loss, weight))
492 return math_ops.add_n(weighted_losses)
/external/tensorflow/tensorflow/python/kernel_tests/
Dlosses_test.py1520 weighted_losses = weights * self._raw_losses
1521 weighted_sum = np.sum(weighted_losses)
1523 self.assertAllClose(weighted_losses, self.evaluate(weighted_loss))