浏览代码

dssm train

丁云鹏 4 月之前
父节点
当前提交
01d164d7be
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      recommend-model-produce/src/main/python/tools/static_ps_infer_v2.py

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

@@ -51,7 +51,12 @@ logger = logging.getLogger(__name__)
 import json
 
 class InferenceFetchHandler(FetchHandler):
-    def __init__(self, output_file, batch_size=1000):
+    def __init__(self, var_dict, period_secs, output_file, batch_size=1000):
+        assert var_dict is not None
+        self.var_dict = var_dict
+        self.period_secs = period_secs
+
+
         self.output_file = output_file
         self.batch_size = batch_size
         self.current_batch = []