-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Unify Python and C++ TIR lower API #8110
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
Merged
Merged
Changes from 17 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
ae28f58
attempt of c->python
1258223
name change
f57ae0e
build update
8a4f40e
import fix
f7e8bbd
build working, import still needs work
e4267fb
returning null binds in driver_api.cc
fa322f6
tests pass woohoo00!
51d85fb
merge to recent tvm
8e30116
black'd _ffi_api.py
ca11f46
remove simple_mode arg from lower in build_module.py for now
b117478
attempt add simple_mode arg in lower c++
41640a1
lower now can take in schedule or IRModule
724db08
add simple_mode parameter in c++
47ea819
reformat for lint
c01ca1e
include header details for lint
49d6c7f
ast lhs and rhs not matching, refactoring driver_api.cc
5e43b18
Added user-defined passes, still failing some tests because python le…
electriclilies 59534cb
tests are green
electriclilies 5cf0f78
Split lower api into 3
electriclilies b10d6ad
got rid of legacy lower
electriclilies 5d5c068
renamed lower funcs
electriclilies f2596c5
remove python get_binds and rename flags
electriclilies d6be36e
fix typo
electriclilies 06532d3
clean up doc and formatting
electriclilies 4d7a602
fix typos
electriclilies 2ed255d
fix lint
electriclilies cec3456
fix calls to lower in build_module_test
electriclilies b92dfe3
change enable_loop_partition back to simple_mode for consistency with…
electriclilies 0d69397
clang format
electriclilies 30ad407
fix typo
electriclilies 51bcd3f
retrigger
electriclilies eddec7b
fix calls to ffi lower
electriclilies 1bb8b9d
Add get binds to the FFI
electriclilies e932400
Merge branch 'main' into lower_build
electriclilies 4b8a529
fix black
electriclilies 6115f3c
comment out SchedulePostProcRewriteForTensorCore
electriclilies b9c8cb6
DELETE schedule postproc rewrite for tensorcore
electriclilies 09d7806
Fix call fo lower_primfunc
electriclilies 8bfc97e
Clean up comments
electriclilies 566de68
change return of ffi get_binds
electriclilies cc9458e
Fix off by1
electriclilies 4471a01
Merge branch 'main' of https://github.com/apache/incubator-tvm into l…
electriclilies ca4683d
respond to tristan's comments
electriclilies 00fcd7a
update driver_api.h docs
electriclilies 7a2b404
Apply suggestions from code review
8988368
remove relay.backend.lower
electriclilies a460f7e
Merge branch 'lower_build' of github.com:CircleSpin/tvm into lower_build
electriclilies 38a121b
Respond to feedback
electriclilies 55e90cf
remove 2nd get binds impl
electriclilies d3e18c2
fix lint
electriclilies 6e5a2ff
Update src/driver/driver_api.cc
4933a5e
clang format
electriclilies b42fb19
update doc
electriclilies 4c7049d
Merge branch 'lower_build' of github.com:CircleSpin/tvm into lower_build
electriclilies e462dab
fix typo
electriclilies d067a67
black
electriclilies 794c606
fix pass ctx
electriclilies File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
| """FFI APIs for tvm.driver""" | ||
| import tvm._ffi | ||
|
|
||
| tvm._ffi._init_api("driver", __name__) |
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
Oops, something went wrong.
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.
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.
typo : should be a PrimFunc?