def trim_variable_postfixes(scope_str):
    'Trims any extra numbers added to a tensorflow scope string.\n\n  Necessary to align variables in graph and checkpoint\n\n  Args:\n    scope_str: Tensorflow variable scope string.\n  Returns:\n    Scope string with extra numbers trimmed off.\n  '
    idx = scope_str.find(':')
    return scope_str[:idx]
Trims any extra numbers added to a tensorflow scope string.

Necessary to align variables in graph and checkpoint

Args:
  scope_str: Tensorflow variable scope string.
Returns:
  Scope string with extra numbers trimmed off.
def trim_variable_postfixes(scope_str):
    'Trims any extra numbers added to a tensorflow scope string.\n\n  Necessary to align variables in graph and checkpoint\n\n  Args:\n    scope_str: Tensorflow variable scope string.\n  Returns:\n    Scope string with extra numbers trimmed off.\n  '
    idx = scope_str.find(':')
    return scope_str[:idx]