fix potential tensor leak in tensor.__setitem__ (#35013)
* fix index tensor leak in __setitem__ * fix another usage of PyTuple_Pack * refine code * refine code * handle None index * add Py_DecRef * revert ut * refine code * merge develop * use RAII * follow comments
Showing
想要评论请 注册 或 登录