parameters: (input_saver, input_binary)
return_statement: return saver_def
docstring: Parser input tensorflow Saver into SaverDef proto.
docstring_summary: Parser input tensorflow Saver into SaverDef proto.
docstring_tokens: Parser input tensorflow Saver into SaverDef proto .
function: def _parse_input_saver_proto(input_saver, input_binary):
      """Parser input tensorflow Saver into SaverDef proto."""
      if not gfile.Exists(input_saver):
          print("Input saver file '" + input_saver + "' does not exist!")
          return -1
      mode = "rb" if input_binary else "r"
      with gfile.FastGFile(input_saver, mode) as f:
          saver_def = saver_pb2.SaverDef()
          if input_binary:
              saver_def.ParseFromString(f.read())
          else:
              text_format.Merge(f.read(), saver_def)
      return saver_def
function_tokens: def _parse_input_saver_proto ( input_saver , input_binary ) : if not gfile . Exists ( input_saver ) : print ( "Input saver file '" + input_saver + "' does not exist!" ) return - 1 mode = "rb" if input_binary else "r" with gfile . FastGFile ( input_saver , mode ) as f : saver_def = saver_pb2 . SaverDef ( ) if input_binary : saver_def . ParseFromString ( f . read ( ) ) else : text_format . Merge ( f . read ( ) , saver_def ) return saver_def