Commit 287fe4f2 authored by Igor Saprykin's avatar Igor Saprykin Committed by TensorFlower Gardener
Browse files

Switch default `replicate_model_fn.loss_reduction` to SUM_BY_NONZERO_WEIGHTS.

Users of weighted losses need loss_reduction=SUM, otherwise the most common choice is SUM_BY_NONZERO_WEIGHTS.  Estimator class doesn't have visibility into whether weighted losses are used, so the default was assumed to be SUM, because it's correct-ish in either case.  This change sets the default to SUM_BY_NONZERO_WEIGHTS to accomodate the most common case.

PiperOrigin-RevId: 182122737
parent 246e4000
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment