message: Update estimator.py
  Replace contrib metrics with core metrics
diff: @@ -30,7 +30,6 @@ import six
  from google.protobuf import message
  from tensorflow.contrib import layers
  -from tensorflow.contrib import metrics as metrics_lib
  from tensorflow.contrib.framework import deprecated
  from tensorflow.contrib.framework import deprecated_args
  from tensorflow.contrib.framework import list_variables
  @@ -60,6 +59,7 @@ from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import lookup_ops
  +from tensorflow.python.ops import metrics as metrics_lib
  from tensorflow.python.ops import resources
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import gfile
  @@ -1230,7 +1230,7 @@ class Estimator(BaseEstimator):
  if metric_key.MetricKey.LOSS not in model_fn_ops.eval_metric_ops:
  model_fn_ops.eval_metric_ops[metric_key.MetricKey.LOSS] = (
  - metrics_lib.streaming_mean(model_fn_ops.loss))
  + metrics_lib.mean(model_fn_ops.loss))
  return model_fn_ops
  def _get_predict_ops(self, features):
  