[API 2.0]Migrate api example for gradients/append_backward/program_guard (#27570)
* modify sample code * variable -> tensor * migrate program_guard sample code * refine error message * migrate program_guard * refine comment style * fix indent
Showing
想要评论请 注册 或 登录