torch.autograd

若API未标明支持情况,则代表该API的支持情况待验证。

API名称

是否支持

限制与说明

torch.autograd.Function

     

torch.autograd.profiler.profile

  

torch.autograd.profiler.emit_nvtx

  

torch.autograd.profiler.emit_itt

  

torch.autograd.detect_anomaly

     

torch.autograd.set_detect_anomaly

     

torch.autograd.graph.saved_tensors_hooks

     

torch.autograd.graph.save_on_cpu

     

torch.autograd.graph.disable_saved_tensors_hooks

  

torch.autograd.backward

不支持稀疏张量

torch.autograd.grad

  

torch.autograd.forward_ad.dual_level

  

torch.autograd.forward_ad.make_dual

     

torch.autograd.forward_ad.unpack_dual

     

torch.autograd.functional.jacobian

  

torch.autograd.functional.hessian

  

torch.autograd.functional.vjp

  

torch.autograd.functional.jvp

  

torch.autograd.functional.vhp

  

torch.autograd.functional.hvp

  

FunctionCtx.mark_dirty

     

FunctionCtx.mark_non_differentiable

     

FunctionCtx.save_for_backward

     

FunctionCtx.set_materialize_grads

     

torch.autograd.gradcheck

  

torch.autograd.gradgradcheck

  

profile.export_chrome_trace

  

profile.key_averages

  

profile.total_average

  

torch.autograd.profiler.load_nvprof