• C
    [PTen] Add variable transform to/from ptenTensor and add cast kernel (#36916) · 5caa6fc5
    chentianyu03 提交于
    * add cast kernel
    
    * add cast cuda kernel
    
    * add cast kernel
    
    * make cast kernel output dtype undefined
    
    * get cast dtype from vardesc
    
    * move cast to manipulation and add test case
    
    * add castinfershape
    
    * avoid reinitilaze variable
    
    * InitializeVariable support datatype
    
    * merge develop branch
    
    * fix merge bug
    
    * revert modify initializeVariable
    
    * revert modify on InitializeVariable
    
    * revert modify on InitializeVariable
    
    * mutable support reset dtype
    
    * enable make pten tensor from variable when def_arg.type is undefined
    
    * fix build pten ctx start_idx error
    
    * copy pten out tensor to variable
    
    * merge develop branch
    
    * fix non pten kernel cast failed
    
    * add reset allocation place for remake tensor
    
    * fix inplace realloc error
    
    * add mutable on pten kernles and remove unused cast files
    
    * rename function names
    
    * fix output type error
    
    * fix conflict with develop branch
    
    * set data type to variable with pten's dtype
    
    * fix test_cast_api type mismatch
    
    * densorTensro mutable_data support 0 bytes value
    
    * fix the inplace bug of reshape kernel
    
    * fix pten.backend != variable.place when moving storage, palce mismatch bug
    
    * fix conflict with develop branch
    
    * Fix bug of paddle::experimental::MovesStorage
    
    * fix ReMakePtenDenseTensor place mismatch bug
    
    * Revert "fix ReMakePtenDenseTensor place mismatch bug"
    
    This reverts commit 86336032f60b8a15eacd2c1ff2fa513f5d8dfd1a.
    
    * fix ReMakePtenDenseTensor place mismatch bug
    
    * reverts the set_lod interface, test=develop
    
    * modify by the review options
    
    * modify error message
    
    * add & for const input arguments
    
    * add reference in params
    
    * elementwise_sub add mutable_data
    
    * fix ResetHolderWithType check size bug
    
    * add dependence pten_tensor to test_cast_api object
    
    * remove unused code to pass ci coverage
    Co-authored-by: NChen Weihang <chenweihang@baidu.com>
    Co-authored-by: NYuanRisheng <yuanrisheng@baidu.com>
    Co-authored-by: Nshixiaowei02 <39303645+Shixiaowei02@users.noreply.github.com>
    5caa6fc5
dot.h 1.6 KB