message: Currently a shape mismatch for update_state will print "Shapes {y_pred.shape} and {y_true} are incompatible" which is confusingly the opposite order of the method parameters.
diff: @@ -3380,7 +3380,7 @@ def accuracy(y_true, y_pred):
  [y_pred, y_true], _ = \
  metrics_utils.ragged_assert_compatible_and_get_flat_values(
  [y_pred, y_true])
  - y_pred.shape.assert_is_compatible_with(y_true.shape)
  + y_true.shape.assert_is_compatible_with(y_pred.shape)
  if y_true.dtype != y_pred.dtype:
  y_pred = math_ops.cast(y_pred, y_true.dtype)
  return math_ops.cast(math_ops.equal(y_true, y_pred), backend.floatx())
  