API 相关说明
Unscale all grad_tensors’s grad.
grad_tensors
grad_tensors (Iterable[Tensor]) – Tensors needed to unscale grads. Should be all tensors that are affected by target tensor in GradManager’s backward.
Iterable
Tensor
target
上一页
megengine.amp.GradScaler.state_dict
下一页
megengine.amp.GradScaler.update