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
ee95f6c8
Commit
ee95f6c8
authored
Apr 02, 2019
by
Wuwei Lin
Committed by
ziheng
Apr 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Relay, Quantization] Quantize all fields of concatenate (#2913)
parent
3746d902
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
python/tvm/relay/quantize/_annotate.py
+4
-5
No files found.
python/tvm/relay/quantize/_annotate.py
View file @
ee95f6c8
...
...
@@ -253,11 +253,10 @@ def concatenate_rewrite(ref_call, new_args, ctx):
# make sure the inputs of concatenate are all normal
# expression or annotate expression
if
kind_list
[
0
]
is
None
:
for
k
in
kind_list
:
assert
k
is
None
if
all
([
k
is
None
for
k
in
kind_list
]):
return
None
for
k
in
kind_list
:
assert
k
is
not
None
for
i
,
k
in
enumerate
(
kind_list
):
if
k
is
None
:
expr_list
[
i
]
=
attach_simulated_quantize
(
expr_list
[
i
],
QAnnotateKind
.
ACTIVATION
)
expr
=
_forward_op
(
ref_call
,
[
_expr
.
Tuple
(
expr_list
)])
return
QAnnotateExpr
(
expr
,
QAnnotateKind
.
ACTIVATION
)
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