前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【留言送书】PyTorch1.8版本发布!更有TorchVision等期待的更新!

【留言送书】PyTorch1.8版本发布!更有TorchVision等期待的更新!

作者头像
lujohn3li
发布2021-03-16 17:05:47
9130
发布2021-03-16 17:05:47
举报

近日,Facebook发布了PyTorch 1.8新版本。自1.7版以来,此版本包含3,000多次提交。它包括众多更新和优化:编译,代码优化,用于科学计算的前端API,以及通过pytorch.org提供的二进制文件对AMD ROCm的支持。它还为管道和模型并行性以及梯度压缩的大规模训练提供了改进的功能。几个重大更新包括:

  • torch.fx:一个可以用于操作 nn.Module实例的工具,它可以改变其中的operations,比如新增一个op, FX包含三个重要部分:a symbolic tracer, an intermediate representation, and Python code generation。更多内容可以阅读文档:https://pytorch.org/docs/stable/fx.html
  • torch.fft:支持FFTs,torch.linalg:支持和numpy类似的线性代数库;
  • 分布式训练优化:Improved NCCL reliability; Pipeline parallelism support; RPC profiling; and support for communication hooks adding gradient compression.

更多更新详情见:https://pytorch.org/blog/pytorch-1.8-released/,目前官方1.8版本支持cuda10.2和cuda11.1两个版本,默认是cuda10.2:

伴随着PyTorch1.8版本的更新,同步更新的还有其它Torch库:

  • TorchVision - Added support for PyTorch Mobile including Detectron2Go (D2Go), auto-augmentation of data during training, on the fly type conversion, and AMP autocasting.
  • TorchAudio - Major improvements to I/O, including defaulting to sox_io backend and file-like object support. Added Kaldi Pitch feature and support for CMake based build allowing TorchAudio to better support no-Python environments.
  • TorchText - Updated the dataset loading API to be compatible with standard PyTorch data loading utilities.
  • TorchCSPRNG - Support for cryptographically secure pseudorandom number generators for PyTorch is now stable with new APIs for AES128 ECB/CTR and CUDA support on Windows.

其中torchvision最新版本为0.9.0,新增了MobileNetV3 模型,支持数据增强

AutoAugment,支持on-the-fly image type conversions,还有最重要的更新是对移动端的支持,重点发布了Detectron2Go (D2Go)库,其支持目标检测库落地到移动端,比如发布到安卓app上:

https://github.com/pytorch/android-demo-app/tree/master/D2Go

D2GO库继承了detectron2的风格,但是更多的是推动目标检测在移动端的落地,目前的D2GO的backbone是FB提出的fbnet,在D2GO项目中也给出了训练DETR和Deformable DETR,更多见github仓库:

https://github.com/facebookresearch/d2go/tree/master/projects_oss/detr

[ 完 ]

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2021-03-06,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 机器学习爱好者社区 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • AutoAugment,支持on-the-fly image type conversions,还有最重要的更新是对移动端的支持,重点发布了Detectron2Go (D2Go)库,其支持目标检测库落地到移动端,比如发布到安卓app上:
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档