Commit 1c9757d9 authored by Pavithra Vijay's avatar Pavithra Vijay Committed by TensorFlower Gardener
Browse files

Update loss and metric function weighting logic in keras.

- Fixes divide by zero error when all batch weights are 0.
- Unifies the logic between the existing keras metrics and the new metrics module.
- This change is not backward compatible (since logic is different).

PiperOrigin-RevId: 207311700
parent 249e639d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment