Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
5cdc8604
Commit
5cdc8604
authored
Jul 07, 2017
by
ziheng
Committed by
Tianqi Chen
Jul 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TAG] Fix signature of decorated function (#228)
* [TAG] Fix signature of decorated function * Add dep
parent
72fcd4e6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
python/setup.py
+1
-0
python/tvm/tag.py
+4
-5
tests/ci_build/install/ubuntu_install_python.sh
+2
-2
No files found.
python/setup.py
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
=
[
...
...
python/tvm/tag.py
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
):
...
...
tests/ci_build/install/ubuntu_install_python.sh
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment