• 文档 >
  • 自动微分包 - torch.autograd >
  • torch.autograd.forward_ad.exit_dual_level
快捷键

torch.autograd.forward_ad.exit_dual_level

torch.autograd.forward_ad.exit_dual_level(*, level=None)[source][source]

退出前向梯度级别。

此功能将删除与此级别关联的所有梯度。仅允许删除最新输入的级别。

此功能还将更新由本 API 中其他函数默认使用的当前级别。


© 版权所有 PyTorch 贡献者。

使用 Sphinx 构建,主题由 Read the Docs 提供。

文档

访问 PyTorch 的全面开发者文档

查看文档

教程

深入了解初学者和高级开发者的教程

查看教程

资源

查找开发资源并获得您的疑问解答

查看资源