parameters: (shape_info, output_dir='./')
return_statement: return
docstring: Save the shape info to the disk.
docstring_summary: Save the shape info to the disk.
docstring_tokens: Save the shape info to the disk .
function: def save_shape_info(shape_info, output_dir='./'):
    """Save the shape info to the disk."""
    if not os.path.exists(output_dir):
      os.makedirs(output_dir)
  
    filename = os.path.join(output_dir, 'shape_info.txt')
    with open(filename, 'w') as f:
      for k, v in shape_info.items():
        f.write("{} : {}\n".format(k, v))
    logger.debug(filename + ' saved.')
    return
function_tokens: def save_shape_info ( shape_info , output_dir = './' ) : if not os . path . exists ( output_dir ) : os . makedirs ( output_dir ) filename = os . path . join ( output_dir , 'shape_info.txt' ) with open ( filename , 'w' ) as f : for k , v in shape_info . items ( ) : f . write ( "{} : {}\n" . format ( k , v ) ) logger . debug ( filename + ' saved.' ) return