from tensorflow.contrib.framework import tensor_util

      name, 'precision', [predictions, labels]):

    predictions, labels = tensor_util.remove_squeezable_dimensions(
        predictions, labels)
