def read_checkpoint(out_fp):
 pickle_fh = open(out_fp, 'r')
 return pickle.load(pickle_fh)

def read_checkpoint ( out_fp ) : pickle_fh = open ( out_fp , 'r' ) return pickle . load ( pickle_fh )
read in information stored in a checkpoint out_fp: the path to the checkpoint dir .