(scope_str)
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.
Trims any extra numbers added to a tensorflow scope string.
Trims any extra numbers added to a tensorflow scope string .
def trim_variable_postfixes(scope_str):
  """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.
  """
  idx = scope_str.find(':')
  return scope_str[:idx]
def trim_variable_postfixes ( scope_str ) : idx = scope_str . find ( ':' ) return scope_str [ : idx ]