Skip to content

Commit

Permalink
fix issue602
Browse files Browse the repository at this point in the history
N/A

Signed-off-by: Luxuhui <[email protected]>
  • Loading branch information
lu229 committed Mar 1, 2020
1 parent 0d5ec24 commit 7e673ce
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions issue602.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/tools/python/transform/transformer.py b/tools/python/transform/transformer.py
index bb9154f8..3a0a2722 100644
--- a/tools/python/transform/transformer.py
+++ b/tools/python/transform/transformer.py
@@ -961,7 +961,7 @@ class Transformer(base_converter.ConverterInterface):
if consumer_op.type == MaceOp.Activation.name \
and ConverterUtil.get_arg(
consumer_op,
- MaceKeyword.mace_activation_type_str).s != 'PRELU':
+ MaceKeyword.mace_activation_type_str).s != b'PRELU':
print("Fold activation: %s(%s)" % (op.name, op.type))
op.name = consumer_op.name
op.output[0] = consumer_op.output[0]

0 comments on commit 7e673ce

Please sign in to comment.