Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Custom Op] New custom operator extension mechanism #30690

Merged
merged 39 commits into from
Feb 10, 2021

Commits on Jan 25, 2021

  1. initial commit: simple demo

    chenwhql committed Jan 25, 2021
    Configuration menu
    Copy the full SHA
    654b1c6 View commit details
    Browse the repository at this point in the history
  2. polish copyright format

    chenwhql committed Jan 25, 2021
    Configuration menu
    Copy the full SHA
    de4914f View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2021

  1. add grap op simple demo

    chenwhql committed Jan 26, 2021
    Configuration menu
    Copy the full SHA
    fdbe86b View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2021

  1. Configuration menu
    Copy the full SHA
    870cf63 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2021

  1. change trait marco name

    chenwhql committed Jan 28, 2021
    Configuration menu
    Copy the full SHA
    9f80d3c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8395c28 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2021

  1. Configuration menu
    Copy the full SHA
    0cd74f9 View commit details
    Browse the repository at this point in the history
  2. poish code & add notes

    chenwhql committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    976e70a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5f355fc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d1d0ba7 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2021

  1. add new custom op test dir

    chenwhql committed Feb 3, 2021
    Configuration menu
    Copy the full SHA
    7d6a187 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b085762 View commit details
    Browse the repository at this point in the history
  3. polish impl details

    chenwhql committed Feb 3, 2021
    Configuration menu
    Copy the full SHA
    a38b373 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    44878a4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ef52fb1 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2021

  1. fix failed unittest

    chenwhql committed Feb 4, 2021
    Configuration menu
    Copy the full SHA
    9d4c964 View commit details
    Browse the repository at this point in the history
  2. Costum op (#1)

    * fix compile error
    
    * wrap framework tensor with LoDTensor
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * add CustomTensor default constructor
    
    * add size() for CustomTensor
    
    * make size const for CustomTensor
    
    * refactor place related api to circle the concept
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * make place const
    
    * make Tensor copy
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * remove additional head of framework
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * add gpu test
    
    * merge latest cwh code in
    
    * adjust ut code of custom op
    
    * adjust ut code of custom op
    
    * adjust ut code of custom op
    JiabinYang authored Feb 4, 2021
    Configuration menu
    Copy the full SHA
    15a86da View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2021

  1. Remove ShareData from user && Change CustomTensor to Tensor && Suppor…

    …t more data type (#2)
    
    * fix compile error
    
    * wrap framework tensor with LoDTensor
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * add CustomTensor default constructor
    
    * add size() for CustomTensor
    
    * make size const for CustomTensor
    
    * refactor place related api to circle the concept
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * make place const
    
    * make Tensor copy
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * remove additional head of framework
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * add gpu test
    
    * merge latest cwh code in
    
    * adjust ut code of custom op
    
    * adjust ut code of custom op
    
    * adjust ut code of custom op
    
    * adjust ut code of custom op
    
    * adjust ut code of custom op
    
    * hid share data from and to
    
    * rename CustomTensor to Tensor
    JiabinYang authored Feb 5, 2021
    Configuration menu
    Copy the full SHA
    4b6649f View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2021

  1. Configuration menu
    Copy the full SHA
    ffdb824 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    41aadfe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    82bfa1b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    005f928 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0859385 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    780c56a View commit details
    Browse the repository at this point in the history
  7. change pybind api name

    chenwhql committed Feb 7, 2021
    Configuration menu
    Copy the full SHA
    9bcc048 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8f6452f View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2021

  1. add register custom op api

    chenwhql committed Feb 8, 2021
    Configuration menu
    Copy the full SHA
    cf20f1d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6892ef5 View commit details
    Browse the repository at this point in the history
  3. refactor copy to api && change Reshape to lowercase && support more d…

    …type && add more test (#3)
    
    * fix compile error
    
    * wrap framework tensor with LoDTensor
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * add CustomTensor default constructor
    
    * add size() for CustomTensor
    
    * make size const for CustomTensor
    
    * refactor place related api to circle the concept
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * make place const
    
    * make Tensor copy
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * remove additional head of framework
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * add gpu test
    
    * merge latest cwh code in
    
    * adjust ut code of custom op
    
    * adjust ut code of custom op
    
    * adjust ut code of custom op
    
    * adjust ut code of custom op
    
    * adjust ut code of custom op
    
    * hid share data from and to
    
    * rename CustomTensor to Tensor
    
    * support multi dtype
    
    * remove lod, make reshape lowercase, add copy test and refactor copy api
    
    * remove lod, make reshape lowercase, add copy test and refactor copy api
    
    * remove lod, make reshape lowercase, add copy test and refactor copy api
    
    * remove lod, make reshape lowercase, add copy test and refactor copy api
    
    * fix copy to error
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    JiabinYang authored Feb 8, 2021
    Configuration menu
    Copy the full SHA
    f5c639d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3ea5ca0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8dc6c94 View commit details
    Browse the repository at this point in the history
  6. polish test details

    chenwhql committed Feb 8, 2021
    Configuration menu
    Copy the full SHA
    c174345 View commit details
    Browse the repository at this point in the history
  7. Add cast api && Change copy related api to copy_to && add more test (#4)

    * fix compile error
    
    * wrap framework tensor with LoDTensor
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * add CustomTensor default constructor
    
    * add size() for CustomTensor
    
    * make size const for CustomTensor
    
    * refactor place related api to circle the concept
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * fix compile error
    
    * make place const
    
    * make Tensor copy
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * debug CustomTensor core
    
    * remove additional head of framework
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * use back to shared ptr for custom tensor
    
    * add gpu test
    
    * merge latest cwh code in
    
    * adjust ut code of custom op
    
    * adjust ut code of custom op
    
    * adjust ut code of custom op
    
    * adjust ut code of custom op
    
    * adjust ut code of custom op
    
    * hid share data from and to
    
    * rename CustomTensor to Tensor
    
    * support multi dtype
    
    * remove lod, make reshape lowercase, add copy test and refactor copy api
    
    * remove lod, make reshape lowercase, add copy test and refactor copy api
    
    * remove lod, make reshape lowercase, add copy test and refactor copy api
    
    * remove lod, make reshape lowercase, add copy test and refactor copy api
    
    * fix copy to error
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add more test
    
    * add type cast
    
    * add cast and make copy to api
    
    * add cast and make copy to api
    
    * add cast and make copy to api
    
    * add cast and make copy to api
    
    * merge cwh code
    
    * merge cwh code
    
    * merge cwh code
    
    * merge cwh code
    
    * merge cwh code
    
    * add more error log
    
    * add more error log
    
    * polish code
    
    * used for test
    
    * remove test comment
    
    * remove test comment
    JiabinYang authored Feb 8, 2021
    Configuration menu
    Copy the full SHA
    e5cc53b View commit details
    Browse the repository at this point in the history
  8. resolve conflict

    chenwhql committed Feb 8, 2021
    Configuration menu
    Copy the full SHA
    222ad9c View commit details
    Browse the repository at this point in the history
  9. fix uint8 type error

    chenwhql committed Feb 8, 2021
    Configuration menu
    Copy the full SHA
    44811a0 View commit details
    Browse the repository at this point in the history
  10. fix lost uint8 type error

    chenwhql committed Feb 8, 2021
    Configuration menu
    Copy the full SHA
    85d7b2c View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2021

  1. add test for coverage

    chenwhql committed Feb 9, 2021
    Configuration menu
    Copy the full SHA
    0c90069 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e24aba2 View commit details
    Browse the repository at this point in the history
  3. 1 Configuration menu
    Copy the full SHA
    5d0088d View commit details
    Browse the repository at this point in the history