• Z
    [Unify Tensors PR #3]Port framework::Tensor members & interfaces to... · dfdc9960
    Zhanlue Yang 提交于
    [Unify Tensors PR #3]Port framework::Tensor members & interfaces to pten::DenseTensor, test=allcases (#38473)
    
    * Added shared_ptr<Allocation> member & corresponding interfaces to Storage
    
    * Removed original pten::Allocation from Storage and adjusted the interfaces accordingly
    
    * Fixed issues with storage offset
    
    * Used place to malloc allocation for TensorStorage
    
    * [Unify Tensors PR #3]Ported framework::Tensor interfaces to pten::DenseTensor
    
    * Fixed issues with place
    
    * Added comments
    
    * Moved mutable_data with stream argument to DenseTensor
    
    * Added set_offset interface
    
    * Fixed CI issues,test=allcases
    
    * [Unify Tensors PR #4] Port LoDTensor interfaces to DenseTensor
    
    * Reverted changes too pten_layout() interface
    
    * Removed friend classes
    dfdc9960
tensor_util.h 18.5 KB