def fetch_val_for_key(key, delete_key=False):
 try:
  if delete_key:
   return THEANO_FLAGS_DICT.pop(key)
  return THEANO_FLAGS_DICT[key]
 except KeyError:
  pass
 key_tokens = key.rsplit('.', 1)
 if (len(key_tokens) > 2):
  raise KeyError(key)
 if (len(key_tokens) == 2):
  (section, option) = key_tokens
 else:
  (section, option) = ('global', key)
 try:
  try:
   return theano_cfg.get(section, option)
  except ConfigParser.InterpolationError:
   return theano_raw_cfg.get(section, option)
 except (ConfigParser.NoOptionError, ConfigParser.NoSectionError):
  raise KeyError(key)

def fetch_val_for_key ( key , delete_key = False ) : try : if delete_key : return THEANO_FLAGS_DICT . pop ( key ) return THEANO_FLAGS_DICT [ key ] except KeyError : pass key_tokens = key . rsplit ( '.' , 1 ) if ( len ( key_tokens ) > 2 ) : raise KeyError ( key ) if ( len ( key_tokens ) == 2 ) : ( section , option ) = key_tokens else : ( section , option ) = ( 'global' , key ) try : try : return theano_cfg . get ( section , option ) except ConfigParser . InterpolationError : return theano_raw_cfg . get ( section , option ) except ( ConfigParser . NoOptionError , ConfigParser . NoSectionError ) : raise KeyError ( key )
return the overriding config value for a key .