• Fenglei's avatar
    gpu reshape n-dimension (n>2) (#716) · 4e78f25d
    Fenglei authored
    * add nd reshape
    
    * compiler and no crash with wrong result version
    
    * change output_stride to trans_stride, which transform input idx to output idx
    
    * using vector instead of c array
    
    * remove delete
    
    * using const and reference to pass string and array
    
    * change 'unimplement' comments, remove extra indents
    
    * format and cast size_t to int
    4e78f25d
backend_test.in.cpp 344 KB