Modified the return value of tensor.grad from numpy to tensor. (#32142)
* Modified the return value of tensor.grad from numpy as tensor. * Modify unittests. * fixed bugs. * Add warning info for x.grad * fixed unittests which used x.grad * fixed bug.
Showing
想要评论请 注册 或 登录