Shortcuts

torch.autograd.forward_ad.enter_dual_level

torch.autograd.forward_ad.enter_dual_level()[源代码]

输入一个新的前向梯度级别。

此级别可用于制作和解包双重张量以计算前向梯度。

此函数还会更新此API中其他函数默认使用的当前级别。

优云智算