• H
    Add ext_tensor.slice() API (#34227) · 3f011d82
    Hao Lin 提交于
    * Add ext_tensor.slice() API, test=develop
    
    * Call Tensor::mutable_data first to fix bugs and add test for writing to sliced tensor
    
    * Fix unit test bug
    
    * Fix code format problem, test=develop
    
    * Fix code format problem
    
    * Fix code format problem
    
    * strengthen unit test
    
    * Use CustomTensorUtils::ShareDataFrom to simplify codes
    3f011d82
ext_tensor.h 4.5 KB