def _tensor_name_base(full_tensor_name):
    'Removes the device assignment code from a tensor.\n\n  e.g. _tensor_name_base("foo:3") => "foo"\n\n  Args:\n    full_tensor_name: A tensor name that is annotated with a device placement\n      (this is what tensor flow introspection gives).\n  Returns:\n    A name without any device assignment.\n  '
    return full_tensor_name.name.split(':')[0]
Removes the device assignment code from a tensor.

e.g. _tensor_name_base("foo:3") => "foo"

Args:
  full_tensor_name: A tensor name that is annotated with a device placement
    (this is what tensor flow introspection gives).
Returns:
  A name without any device assignment.
def _tensor_name_base(full_tensor_name):
    'Removes the device assignment code from a tensor.\n\n  e.g. _tensor_name_base("foo:3") => "foo"\n\n  Args:\n    full_tensor_name: A tensor name that is annotated with a device placement\n      (this is what tensor flow introspection gives).\n  Returns:\n    A name without any device assignment.\n  '
    return full_tensor_name.name.split(':')[0]