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

[DOC] Codebase walkthrough with vector add example #2273

Merged
merged 5 commits into from Dec 20, 2018

Conversation

masahi
Copy link
Member

@masahi masahi commented Dec 11, 2018

Sorry I screwed up my PR at #2206 and accidentally closed it, so reopening here. All comments I got there are addressed.

The first stab at #2160.

@tqchen @yzhliu @merrymercy @vinx13 please review.

- Compile the operator into object code

One of the interesting aspects of TVM codebase is that interop between C++ and Python is not unidirectional. Typically, all code that do heavy liftings are implemented in C++, and Python bindings are provided for user interface. This is also true in TVM, but in TVM codebase, C++ code also call into functions defined in a Python module. For example, the convolution operator is implemented in Python, and its implementation is invoked from C++ code in nnvm.

Copy link
Member

@tqchen tqchen Dec 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we are transitioning to relay, Is it possible to directly introduce the graph related part in the context of relay?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I can update nnvm part with relay to reflect the latest development. But I think it is a good idea to leave some note about nnvm because many doc and tutorials are written in terms of nnvm. People may be confused If we don't mention nnvm in this doc.

@masahi
Copy link
Member Author

masahi commented Dec 17, 2018

I should mention that the vector add example in this PR use low level tvm API directly. There is no detail of topi, nnvm, or relay, to keep it simple.

@tqchen
Copy link
Member

tqchen commented Dec 18, 2018

If there is no further requested changes, I will merge this PR within 24 hours. Thanks @masahi @yzhliu @merrymercy @jroesch

@tqchen tqchen merged commit 0387213 into apache:master Dec 20, 2018
zhiics pushed a commit to zhiics/tvm that referenced this pull request Dec 21, 2018
FrozenGene pushed a commit to FrozenGene/tvm that referenced this pull request Dec 27, 2018
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants