【cherry-pick】【BugFix】fix err of api `to_tensor`, which caused by numpy version...
【cherry-pick】【BugFix】fix err of api `to_tensor`, which caused by numpy version update (#53534) (#53624) * 【BugFix】fix err of api `to_tensor`, which caused by numpy version update (#53534) * fix * update code * pre-commit * remove scale check (0-D tensor is usable) * fix data dtype err * fix numpy default dtype diff * fix data dtype * fix data dtype * update * fix coverage * fix old test which is not correct when 0-D tensor is usable
Showing
想要评论请 注册 或 登录