add clear_gradients for Optimizer and add clear_gradients api description (#21948)
* add clear_gradients for Optimizer, add api description, test=develop * fix optest for optimizer's clear_gradient interface, test=develop * add sample code, test=develop * polish sample code, test=develop
Showing
想要评论请 注册 或 登录