Help protect the Great Barrier Reef with TensorFlow on Kaggle Join Challenge


View source on GitHub

Computes the weighted loss. (deprecated)

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.

A scalar Tensor that returns the weighted loss.

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.