From 34b504eb5539fe6d3cf95d4061fb0456186a87f6 Mon Sep 17 00:00:00 2001 From: slf12 Date: Thu, 31 Oct 2019 05:42:04 +0000 Subject: [PATCH] fix details --- paddleslim/quant/quant_embedding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddleslim/quant/quant_embedding.py b/paddleslim/quant/quant_embedding.py index 7090ea0a..c49b6762 100755 --- a/paddleslim/quant/quant_embedding.py +++ b/paddleslim/quant/quant_embedding.py @@ -70,7 +70,7 @@ def _merge_config(old_config, new_config): supported, now supported dtypes are {} \ ".format(dtype, support_dtype) if 'threshold' in keys: - assert isinstance(new_config['threshold'], (float, int)), "threshold \ + assert isinstance(old_config['threshold'], (float, int)), "threshold \ must be number." print("quant_embedding config {}".format(old_config)) -- GitLab