mnist_utils.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:csgm 作者: AshishBora 项目源码 文件源码
def save_image(image, path):
    """Save an image as a png file"""
    png_writer = png.Writer(28, 28, greyscale=True)
    with open(path, 'wb') as outfile:
        png_writer.write(outfile, 255*image)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号