make paddle.to_tensor() copy if data is varbase (#33335)
* fix stop_gradient in paddle.to_tensor * make to_tensor copy if data is varbase * add ut * refine sample code
Showing
想要评论请 注册 或 登录
* fix stop_gradient in paddle.to_tensor * make to_tensor copy if data is varbase * add ut * refine sample code