def _tf_tensor_name_to_tflite_name(tensor_tf_name: str) -> str:
  """Convert a TF tensor name to the format used by TFLiteConverter.

  Args:
    tensor_tf_name: Tensor name to convert.

  Returns:
    Converted tensor name.
  """
  # See get_tensor_name() in //third_party/tensorflow/lite/python/util.py
  return tensor_tf_name.split(':')[0]