-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Docs] Bring Your Own Codegen Guide -- Part 1 #4602
Conversation
b5bf5e1
to
a2a79c1
Compare
Sorry been on vacation and just starting to catch up. I'll need a day or so to read this. |
@u99127 have you got a chance to review it? |
ef34dc0
to
1eb97ef
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
c147059
to
e899180
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a quick pass
0deede6
to
e09231c
Compare
waiting for @tqchen's approval |
* BYOC tutorial: codegen C * Address comments * Address comments * Add build option * Address comments * Use TVM_DLL_EXPORT_TYPED_FUNC
* BYOC tutorial: codegen C * Address comments * Address comments * Add build option * Address comments * Use TVM_DLL_EXPORT_TYPED_FUNC
* BYOC tutorial: codegen C * Address comments * Address comments * Add build option * Address comments * Use TVM_DLL_EXPORT_TYPED_FUNC
After the relevant PRs merged, we This doc provides a detail guideline about how to implement your own codegen for TVM. Ultimately this guide will have three parts:
How to implement a codegen that generates C code for your platform. -- This PR.
How to implement a codegen that generates any other graph representations (e.g., JSON), and implement a customized TVM runtime module to execute that representation.
How to annotate a Relay program to trigger the implemented codegen and runtime.
cc @zhiics @tqchen @masahi