Adds image.ModelV2._compute_accuracy() to allow subclasses to override when to compute the accuracy metrics.
Adds image.ModelV2._compute_accuracy() to allow subclasses to override when to compute the accuracy metrics.

PiperOrigin-RevId: 241785290

tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo