parameters: (base_meta_graph_def, meta_graph_def,
                            signature_name, removed_op_names)
docstring: Copy the named signature into the transformed MetaGraphDef, if valid.
  
    If any input or output mentioned in the signature was removed by the graph
    transform, the signature is silently omitted from the transformed
    MetaGraphDef.
  
    Args:
      base_meta_graph_def: The untransformed MetaGraphDef.
      meta_graph_def: The transformed MetaGraphDef being built.
      signature_name: The name of the signature to copy.
      removed_op_names: An iterable of names of ops that were removed.
docstring_summary: Copy the named signature into the transformed MetaGraphDef, if valid.
docstring_tokens: Copy the named signature into the transformed MetaGraphDef if valid .
function: def _add_pruned_signature(base_meta_graph_def, meta_graph_def,
                            signature_name, removed_op_names):
    """Copy the named signature into the transformed MetaGraphDef, if valid.
  
    If any input or output mentioned in the signature was removed by the graph
    transform, the signature is silently omitted from the transformed
    MetaGraphDef.
  
    Args:
      base_meta_graph_def: The untransformed MetaGraphDef.
      meta_graph_def: The transformed MetaGraphDef being built.
      signature_name: The name of the signature to copy.
      removed_op_names: An iterable of names of ops that were removed.
    """
    try:
      base_signature = base_meta_graph_def.signature_def[signature_name]
      for key in base_signature.inputs:
        _check_tensor_not_removed(base_signature.inputs[key].name,
                                  removed_op_names)
      for key in base_signature.outputs:
        _check_tensor_not_removed(base_signature.outputs[key].name,
                                  removed_op_names)
      meta_graph_def.signature_def[signature_name].CopyFrom(base_signature)
    except ValueError:
      # exclude any signature that mentions a removed node
      pass
function_tokens: def _add_pruned_signature ( base_meta_graph_def , meta_graph_def , signature_name , removed_op_names ) : try : base_signature = base_meta_graph_def . signature_def [ signature_name ] for key in base_signature . inputs : _check_tensor_not_removed ( base_signature . inputs [ key ] . name , removed_op_names ) for key in base_signature . outputs : _check_tensor_not_removed ( base_signature . outputs [ key ] . name , removed_op_names ) meta_graph_def . signature_def [ signature_name ] . CopyFrom ( base_signature ) except ValueError : # exclude any signature that mentions a removed node pass