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

revert-23830-2.0-beta
cc 5 years ago committed by GitHub
parent ae3bb16d06
commit bd80903333
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1247,6 +1247,9 @@ class AddQuantDequantPass(object):
"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,
scope=None,
place=None,

Loading…
Cancel
Save