parameters: (self, feed)
return_statement: return feed
docstring: Update the feed dict, remove the feed item which is pruned in program.  
  
          Notes: This is a very low level API. Users should not use this API
          directly. 
  
          Args:
              feed(list|dict): feed dict or list.
  
          Returns:
              feed:(list|dict)  updated feed.
docstring_summary: Update the feed dict, remove the feed item which is pruned in program.
docstring_tokens: Update the feed dict remove the feed item which is pruned in program .
function: def _update_feed(self, feed):
          """
          Update the feed dict, remove the feed item which is pruned in program.  
  
          Notes: This is a very low level API. Users should not use this API
          directly. 
  
          Args:
              feed(list|dict): feed dict or list.
  
          Returns:
              feed:(list|dict)  updated feed.
          """
          if feed is None:
              feed = {}
          elif isinstance(feed, (list, tuple)):
              assert len(feed) == 1, "Not compiled with data parallel"
              feed = feed[0]
  
          if not isinstance(feed, dict):
              raise TypeError(
                  "feed requires dict as its Parameter. But you passed in %s" %
                  (type(feed)))
  
          global_block = self._main_program.global_block()
          for feed_name in list(feed.keys()):
              if not global_block.has_var(feed_name):
                  feed.pop(feed_name)
                  warnings.warn(
                      "The variable %s is not found in program. It is not declared or is pruned."
                      % feed_name)
  
          return feed
function_tokens: def _update_feed ( self , feed ) : if feed is None : feed = { } elif isinstance ( feed , ( list , tuple ) ) : assert len ( feed ) == 1 , "Not compiled with data parallel" feed = feed [ 0 ] if not isinstance ( feed , dict ) : raise TypeError ( "feed requires dict as its Parameter. But you passed in %s" % ( type ( feed ) ) ) global_block = self . _main_program . global_block ( ) for feed_name in list ( feed . keys ( ) ) : if not global_block . has_var ( feed_name ) : feed . pop ( feed_name ) warnings . warn ( "The variable %s is not found in program. It is not declared or is pruned." % feed_name ) return feed