From 55461612b2f9f40e172e8bd07cd884fcf4968fc4 Mon Sep 17 00:00:00 2001 From: ceci3 <592712189@qq.com> Date: Mon, 9 Dec 2019 07:58:31 +0000 Subject: [PATCH] update encode --- paddleslim/nas/sa_nas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddleslim/nas/sa_nas.py b/paddleslim/nas/sa_nas.py index 00decbfd..d9c5dcf9 100644 --- a/paddleslim/nas/sa_nas.py +++ b/paddleslim/nas/sa_nas.py @@ -60,7 +60,7 @@ class SANAS(object): self._init_temperature = init_temperature self._is_server = is_server self._configs = configs - self._key = hashlib.md5(str(self._configs)).hexdigest() + self._key = hashlib.md5(str(self._configs).encode("utf-8")).hexdigest() server_ip, server_port = server_addr if server_ip == None or server_ip == "": -- GitLab