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
84eea572
Commit
84eea572
authored
Jul 20, 2018
by
Tianqi Chen
Committed by
GitHub
Jul 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update VTA schedule (#1464)
parent
5e16ba2b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
docker/install/ubuntu_install_sphinx.sh
+1
-1
vta/python/vta/top/vta_conv2d.py
+6
-3
No files found.
docker/install/ubuntu_install_sphinx.sh
View file @
84eea572
pip3 install sphinx sphinx-gallery sphinx_rtd_theme sphinx_autodoc_annotat
or
matplotlib Image commonmark>
=
0.7.3 docutils>
=
0.11
pip3 install sphinx sphinx-gallery sphinx_rtd_theme sphinx_autodoc_annotat
ion
matplotlib Image commonmark>
=
0.7.3 docutils>
=
0.11
vta/python/vta/top/vta_conv2d.py
View file @
84eea572
...
@@ -276,7 +276,7 @@ def schedule_conv2d(attrs, outs, target):
...
@@ -276,7 +276,7 @@ def schedule_conv2d(attrs, outs, target):
target
=
tvm
.
target
.
create
(
target
)
target
=
tvm
.
target
.
create
(
target
)
if
target
.
device_name
==
"vta"
:
if
target
.
device_name
==
"vta"
:
return
schedule_packed_conv2d
(
outs
)
return
schedule_packed_conv2d
(
outs
)
elif
target
.
startswith
(
"llvm"
):
elif
str
(
target
)
.
startswith
(
"llvm"
):
return
tvm
.
create_schedule
([
x
.
op
for
x
in
outs
])
return
tvm
.
create_schedule
([
x
.
op
for
x
in
outs
])
else
:
else
:
raise
RuntimeError
(
"not support target
%
s"
%
target
)
raise
RuntimeError
(
"not support target
%
s"
%
target
)
...
@@ -353,8 +353,11 @@ def schedule_packed_conv2d(outs):
...
@@ -353,8 +353,11 @@ def schedule_packed_conv2d(outs):
else
:
else
:
pad_data
=
None
pad_data
=
None
wrkld
=
_get_workload
(
data
,
pad_data
,
kernel
,
output
)
wrkld
=
_get_workload
(
data
,
pad_data
,
kernel
,
output
)
if
wrkld
in
_WL2PLAN
:
plan
=
_WL2PLAN
[
wrkld
]
plan
=
_WL2PLAN
[
wrkld
]
else
:
plan
=
find_schedules
(
wrkld
,
vt_only
=
True
,
best_only
=
True
)[
0
]
logging
.
info
(
"Trying to find plan for
%
s"
,
wrkld
)
env
=
get_env
()
env
=
get_env
()
load_inp
=
load_wgt
=
load_out
=
store_out
=
env
.
dma_copy
load_inp
=
load_wgt
=
load_out
=
store_out
=
env
.
dma_copy
...
...
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