Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/keras/utils/
Dlosses_utils.py256 def reduce_weighted_loss(weighted_losses, argument
260 loss = weighted_losses
262 loss = math_ops.reduce_sum(weighted_losses)
264 loss = _safe_mean(loss, _num_elements(weighted_losses))
317 weighted_losses = math_ops.multiply(losses, sample_weight)
320 loss = reduce_weighted_loss(weighted_losses, reduction)
/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)
590 weighted_losses = math_ops.multiply(term1 - term2, weights)
591 loss = math_ops.reduce_sum(weighted_losses)
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_eager_v1.py180 weighted_losses = losses_utils.compute_weighted_loss(
193 weighted_losses, reduction=loss_reduction)
Dtraining_v1.py1611 weighted_losses = losses_utils.compute_weighted_loss(
1624 weighted_losses, reduction=loss_reduction)
/external/tensorflow/tensorflow/python/kernel_tests/
Dlosses_test.py1519 weighted_losses = weights * self._raw_losses
1520 weighted_sum = np.sum(weighted_losses)
1522 self.assertAllClose(weighted_losses, self.evaluate(weighted_loss))