torch.autograd.forward_ad.enter_dual_level torch.autograd.forward_ad.enter_dual_level()[源代码] 输入一个新的正向传播梯度值。 此级别可用于生成和解包双Tensor,以便计算前向梯度。 此函数还会更新该API中其他函数默认使用的当前级别。