diff --git a/paddleslim/nas/sa_nas.py b/paddleslim/nas/sa_nas.py index 00decbfd1ae38dfa3fedf3234665ca740674d603..d9c5dcf917f734b622bc5515f866d62ee79957de 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 == "":