(output_path)
Returns the contents of a pickle file or False if it doesn't exist.
Returns the contents of a pickle file or False if it doesn't exist.
Returns the contents of a pickle file or False if it doesn t exist .
def read_pkl(output_path):
  """Returns the contents of a pickle file or False if it doesn't exist."""
  if tf.io.gfile.exists(output_path):
    with tf.io.gfile.GFile(output_path, 'rb') as f:
      data = pkl.load(f)
      logging.info('Read data with keys: %s', list(data.keys()))
      return data
  else:
    return False
def read_pkl ( output_path ) : if tf . io . gfile . exists ( output_path ) : with tf . io . gfile . GFile ( output_path , 'rb' ) as f : data = pkl . load ( f ) logging . info ( 'Read data with keys: %s' , list ( data . keys ( ) ) ) return data else : return False