丁云鹏 4 hónapja
szülő
commit
9907fb2045

+ 1 - 1
recommend-model-produce/src/main/python/tools/static_ps_infer_v2.py

@@ -87,7 +87,7 @@ class InferenceFetchHandler(FetchHandler):
         while True:
             try:
                 result_dict = self.result_queue.get(timeout=1)  # 非阻塞获取
-                logger.info("write vector {} {}".format(result_dict, len(batch)))
+                logger.info("write vector {} {}".format(json.dumps(result_dict), len(batch)))
                 batch.append(result_dict)
                 if len(batch) >= self.batch_size:
                     logger.info("write vector")