parameters: (graphs,
                 proto_fileformat='rawproto',
                 default_ops='NoOp:NoOp,_Recv:RecvOp,_Send:SendOp')
return_statement: return get_header_from_ops_and_kernels(ops_and_kernels, default_ops == 'all')
docstring: Computes a header for use with tensorflow SELECTIVE_REGISTRATION.
  
    Args:
      graphs: a list of paths to GraphDef files to include.
      proto_fileformat: optional format of proto file, either 'textproto' or
        'rawproto' (default).
      default_ops: optional comma-separated string of operator:kernel pairs to
        always include implementation for. Pass 'all' to have all operators and
        kernels included. Default: 'NoOp:NoOp,_Recv:RecvOp,_Send:SendOp'.
    Returns:
      the string of the header that should be written as ops_to_register.h.
docstring_summary: Computes a header for use with tensorflow SELECTIVE_REGISTRATION.
docstring_tokens: Computes a header for use with tensorflow SELECTIVE_REGISTRATION .
function: def get_header(graphs,
                 proto_fileformat='rawproto',
                 default_ops='NoOp:NoOp,_Recv:RecvOp,_Send:SendOp'):
    """Computes a header for use with tensorflow SELECTIVE_REGISTRATION.
  
    Args:
      graphs: a list of paths to GraphDef files to include.
      proto_fileformat: optional format of proto file, either 'textproto' or
        'rawproto' (default).
      default_ops: optional comma-separated string of operator:kernel pairs to
        always include implementation for. Pass 'all' to have all operators and
        kernels included. Default: 'NoOp:NoOp,_Recv:RecvOp,_Send:SendOp'.
    Returns:
      the string of the header that should be written as ops_to_register.h.
    """
    ops_and_kernels = get_ops_and_kernels(proto_fileformat, graphs, default_ops)
    if not ops_and_kernels:
      print('Error reading graph!')
      return 1
  
    return get_header_from_ops_and_kernels(ops_and_kernels, default_ops == 'all')
function_tokens: def get_header ( graphs , proto_fileformat = 'rawproto' , default_ops = 'NoOp:NoOp,_Recv:RecvOp,_Send:SendOp' ) : ops_and_kernels = get_ops_and_kernels ( proto_fileformat , graphs , default_ops ) if not ops_and_kernels : print ( 'Error reading graph!' ) return 1 return get_header_from_ops_and_kernels ( ops_and_kernels , default_ops == 'all' )