未验证 提交 bd809033 编写于 作者: C cc 提交者: GitHub

Add activation_type in AddQuantDequantPass to be compatible with paddleslim, test=develop (#23221)

上级 ae3bb16d
...@@ -1247,6 +1247,9 @@ class AddQuantDequantPass(object): ...@@ -1247,6 +1247,9 @@ class AddQuantDequantPass(object):
"leaky_relu", "tanh", "swish" "leaky_relu", "tanh", "swish"
] ]
# To be compatible with PaddleSlim, not remove _activation_type for now
_activation_type = ["relu", "relu6", "leaky_relu", "tanh", "swish"]
def __init__(self, def __init__(self,
scope=None, scope=None,
place=None, place=None,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册