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
217792ec
Commit
217792ec
authored
Aug 01, 2018
by
Thierry Moreau
Committed by
Tianqi Chen
Aug 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[VTA] bugfix parameter derivation (#1521)
parent
3597dfb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
vta/config/vta_config.py
+4
-2
vta/python/vta/environment.py
+1
-1
No files found.
vta/config/vta_config.py
View file @
217792ec
...
...
@@ -86,8 +86,10 @@ def main():
if
not
ok_path_list
:
raise
RuntimeError
(
"Cannot find config in
%
s"
%
str
(
path_list
))
cfg
=
json
.
load
(
open
(
ok_path_list
[
0
]))
cfg
[
"LOG_OUT_WIDTH"
]
=
cfg
[
"LOG_INP_WIDTH"
]
cfg
[
"LOG_OUT_BUFF_SIZE"
]
=
cfg
[
"LOG_ACC_BUFF_SIZE"
]
+
cfg
[
"LOG_ACC_WIDTH"
]
-
cfg
[
"LOG_OUT_WIDTH"
]
cfg
[
"LOG_OUT_BUFF_SIZE"
]
=
(
cfg
[
"LOG_ACC_BUFF_SIZE"
]
+
cfg
[
"LOG_OUT_WIDTH"
]
-
cfg
[
"LOG_ACC_WIDTH"
])
pkg
=
get_pkg_config
(
cfg
)
if
args
.
target
:
...
...
vta/python/vta/environment.py
View file @
217792ec
...
...
@@ -110,7 +110,7 @@ class Environment(object):
self
.
INP_WIDTH
=
1
<<
self
.
LOG_INP_WIDTH
self
.
WGT_WIDTH
=
1
<<
self
.
LOG_WGT_WIDTH
self
.
ACC_WIDTH
=
1
<<
self
.
LOG_ACC_WIDTH
self
.
OUT_WIDTH
=
self
.
INP
_WIDTH
self
.
OUT_WIDTH
=
1
<<
self
.
LOG_OUT
_WIDTH
# tensor intrinsic shape
self
.
BATCH
=
1
<<
self
.
LOG_BATCH
self
.
BLOCK_IN
=
1
<<
self
.
LOG_BLOCK_IN
...
...
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