tf.contrib.losses.compute_weighted_loss
Computes the weighted loss. (deprecated)
tf.contrib.losses.compute_weighted_loss(
losses, weights=1.0, scope=None
)
Args |
losses
|
A tensor of size [batch_size, d1, ... dN].
|
weights
|
A tensor of size [1] or [batch_size, d1, ... dK] where K < N.
|
scope
|
the scope for the operations performed in computing the loss.
|
Returns |
A scalar Tensor that returns the weighted loss.
|
Raises |
ValueError
|
If weights is None or the shape is not compatible with
losses , or if the number of dimensions (rank) of either losses or
weights is missing.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[]]