-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[Hexagon] Do not use target test fixture in Hexagon tests
#12981
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
Changes from all commits
f0cf278
831e381
15a69ad
9dcbf0d
280011a
cdff614
05bc6ee
510fbfb
51065b0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,15 +19,15 @@ | |
|
|
||
| import contextlib | ||
| import os | ||
| import sys | ||
|
|
||
| import pytest | ||
|
|
||
| import tvm | ||
| import tvm.testing | ||
| from tvm import autotvm, te | ||
| from tvm.autotvm.tuner import GATuner, XGBTuner | ||
|
|
||
| from .infrastructure import get_hexagon_target | ||
|
|
||
|
|
||
| @autotvm.template("demo_template") | ||
| def demo_template(): | ||
|
|
@@ -143,12 +143,13 @@ def test_autotvm(hexagon_session): | |
| ), | ||
| ), | ||
| } | ||
| target_hexagon = tvm.target.hexagon("v68") | ||
| task = autotvm.task.create( | ||
| "demo_template", args=[], target=target_hexagon, target_host=target_hexagon | ||
| "demo_template", | ||
| args=[], | ||
| target=get_hexagon_target("v68"), | ||
| ) | ||
| tune_tasks([task], **options) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| sys.exit(pytest.main(sys.argv)) | ||
| tvm.testing.main() | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Side comment, thank you for updating these calls to use
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah that would be great! I mentioned it to OSS team before. |
||
Uh oh!
There was an error while loading. Please reload this page.