[Hybrid script] Backend support#2477
Merged
Laurawly merged 31 commits intoapache:masterfrom Feb 13, 2019
Merged
Conversation
xqdan
reviewed
Jan 22, 2019
vinx13
reviewed
Jan 23, 2019
added 22 commits
February 11, 2019 13:04
Contributor
Author
|
@tqchen @xqdan @junrushao1994 @merrymercy @kevinthesun |
added 2 commits
February 11, 2019 21:08
Contributor
Author
xqdan
reviewed
Feb 13, 2019
Laurawly
approved these changes
Feb 13, 2019
vinx13
approved these changes
Feb 13, 2019
Member
|
A good set of changes. Note that we do not need to make hybrid dump optional. The reason that random and NNPack are optional is that they are linked into the runtime library and have additional dependencies. Hybrid dump is a compiler feature, that you should add to COMPILER_SRCS by default |
Member
|
@Laurawly please moderate this pr as per https://docs.tvm.ai/contribute/committer_guide.html |
tqchen
requested changes
Feb 13, 2019
Member
tqchen
left a comment
There was a problem hiding this comment.
change build rule as per my comment
Laurawly
reviewed
Feb 13, 2019
Contributor
Author
|
@tqchen Done. |
Contributor
Author
Done. |
tqchen
requested changes
Feb 13, 2019
tqchen
approved these changes
Feb 13, 2019
Contributor
|
Thanks @were @junrushao1994 @xqdan @vinx13 , this is now merged |
Closed
libing4752
pushed a commit
to libing4752/tvm
that referenced
this pull request
Feb 18, 2019
* a preliminary version is done? * we no longer need the redundant hybrid/api.py * support assert stmt * cast supported * intrin -> runtime; util is mainly in charge of compilation time * assert statement * fix python lint * fix cpp lint * on the way to module * rollback .cc * fix typo, no direct expose then * @vinx13 ceil is added i guess? * wip... * temp commit * fix import * i preliminary version is done? * on the way to build hybrid module * nearly fixed... * dumped python are equiv as original python * on the way to bootstrap * cpu bootstrap done * bootstrap! * fix lint * fix doc * resolve some review concerns * support load/save * fix lint * thanks to xqdan fixed my typo * fix build, make dump non-optional * add vthread * jesus why i added this
wweic
pushed a commit
to neo-ai/tvm
that referenced
this pull request
Feb 20, 2019
* a preliminary version is done? * we no longer need the redundant hybrid/api.py * support assert stmt * cast supported * intrin -> runtime; util is mainly in charge of compilation time * assert statement * fix python lint * fix cpp lint * on the way to module * rollback .cc * fix typo, no direct expose then * @vinx13 ceil is added i guess? * wip... * temp commit * fix import * i preliminary version is done? * on the way to build hybrid module * nearly fixed... * dumped python are equiv as original python * on the way to bootstrap * cpu bootstrap done * bootstrap! * fix lint * fix doc * resolve some review concerns * support load/save * fix lint * thanks to xqdan fixed my typo * fix build, make dump non-optional * add vthread * jesus why i added this
wweic
pushed a commit
to neo-ai/tvm
that referenced
this pull request
Feb 20, 2019
* a preliminary version is done? * we no longer need the redundant hybrid/api.py * support assert stmt * cast supported * intrin -> runtime; util is mainly in charge of compilation time * assert statement * fix python lint * fix cpp lint * on the way to module * rollback .cc * fix typo, no direct expose then * @vinx13 ceil is added i guess? * wip... * temp commit * fix import * i preliminary version is done? * on the way to build hybrid module * nearly fixed... * dumped python are equiv as original python * on the way to bootstrap * cpu bootstrap done * bootstrap! * fix lint * fix doc * resolve some review concerns * support load/save * fix lint * thanks to xqdan fixed my typo * fix build, make dump non-optional * add vthread * jesus why i added this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Finally, the interface looks like:
In general, two major things are going in this PR:
A hybrid script text format is supported:
IRPrinter.Minor things:
1.1
util.py&calls.pymainly is in charge of compilation time, andintrinsic.pyis renamed toruntime.pyto be in charge of hybrid script runtime.1.2 Redundant
api.pyis merged to__init.py.AssertStmtis supported; type cast is supported as it is required by [TOPI][CUDA] Add faster-rcnn proposal op #2420.