Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tvm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cld
ml
tvm
Commits
549aa165
Commit
549aa165
authored
7 years ago
by
Atsushi Nukariya
Committed by
Tianqi Chen
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix a typo for Target class (#951)
parent
e94e2450
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/tvm/target.py
+2
-2
2 additions, 2 deletions
python/tvm/target.py
with
2 additions
and
2 deletions
python/tvm/target.py
+
2
−
2
View file @
549aa165
...
...
@@ -99,7 +99,7 @@ class Target(object):
self
.
libs
+=
libs
.
split
(
"
,
"
)
elif
item
.
startswith
(
"
-device=
"
):
self
.
device_name
=
item
.
split
(
"
=
"
)[
1
]
# Target query searchs device name first
# Target query search
e
s device name first
if
self
.
device_name
:
self
.
keys
=
(
self
.
device_name
,)
else
:
...
...
@@ -122,7 +122,7 @@ class Target(object):
elif
target_name
in
(
"
opengl
"
,):
self
.
keys
+=
(
"
opengl
"
,)
elif
target_name
in
(
"
stackvm
"
,
"
ext_dev
"
):
# Do not now class for stacvm or ext_dev
# Do not now class for stac
k
vm or ext_dev
pass
else
:
raise
ValueError
(
"
Unknown target name %s
"
%
target_name
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment