• F
    【cherry-pick】【BugFix】fix err of api `to_tensor`, which caused by numpy version... · 73e6bbba
    feifei-111 提交于
    【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
    73e6bbba
test_to_tensor.py 5.1 KB