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
5cdc8604
Commit
5cdc8604
authored
7 years ago
by
ziheng
Committed by
Tianqi Chen
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[TAG] Fix signature of decorated function (#228)
* [TAG] Fix signature of decorated function * Add dep
parent
72fcd4e6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
python/setup.py
+1
-0
1 addition, 0 deletions
python/setup.py
python/tvm/tag.py
+4
-5
4 additions, 5 deletions
python/tvm/tag.py
tests/ci_build/install/ubuntu_install_python.sh
+2
-2
2 additions, 2 deletions
tests/ci_build/install/ubuntu_install_python.sh
with
7 additions
and
7 deletions
python/setup.py
+
1
−
0
View file @
5cdc8604
...
...
@@ -67,6 +67,7 @@ setuptools.setup(
description
=
'
A domain specific language(DSL) for tensor computations.
'
,
install_requires
=
[
'
numpy
'
,
'
decorator
'
,
],
zip_safe
=
False
,
packages
=
[
...
...
This diff is collapsed.
Click to expand it.
python/tvm/tag.py
+
4
−
5
View file @
5cdc8604
"""
Tag class for TVM operators.
"""
from
functools
import
wraps
from
decorator
import
decorate
class
TagScope
(
object
):
"""
Tag scope object to set tag for operators, working as context
...
...
@@ -22,11 +22,10 @@ class TagScope(object):
TagScope
.
current
=
self
.
_old_scope
def
__call__
(
self
,
fdecl
):
@wraps
(
fdecl
)
def
tagged_fdecl
(
*
args
,
**
kwargs
):
def
tagged_fdecl
(
func
,
*
args
,
**
kwargs
):
with
self
:
return
f
decl
(
*
args
,
**
kwargs
)
return
tagged_fdecl
return
f
unc
(
*
args
,
**
kwargs
)
return
decorate
(
fdecl
,
tagged_fdecl
)
def
tag_scope
(
tag
):
...
...
This diff is collapsed.
Click to expand it.
tests/ci_build/install/ubuntu_install_python.sh
+
2
−
2
View file @
5cdc8604
...
...
@@ -4,5 +4,5 @@ apt-get update && apt-get install -y python-pip python-dev python3-dev
# the version of the pip shipped with ubuntu may be too lower, install a recent version here
cd
/tmp
&&
wget https://bootstrap.pypa.io/get-pip.py
&&
python3 get-pip.py
&&
python2 get-pip.py
pip2
install
nose pylint numpy nose-timer cython
pip3
install
nose pylint numpy nose-timer cython
pip2
install
nose pylint numpy nose-timer cython
decorator
pip3
install
nose pylint numpy nose-timer cython
decorator
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