From 8a317fa22c324839deb5599b495d32259c2e0eeb Mon Sep 17 00:00:00 2001 From: yinhaofeng <1841837261@qq.com> Date: Tue, 22 Sep 2020 06:55:34 +0000 Subject: [PATCH] remove yield --- models/rank/fm/data/get_slot_data.py | 1 - models/rank/fm/readme.md | 1 - 2 files changed, 2 deletions(-) diff --git a/models/rank/fm/data/get_slot_data.py b/models/rank/fm/data/get_slot_data.py index f0b95a79..0f0c217d 100644 --- a/models/rank/fm/data/get_slot_data.py +++ b/models/rank/fm/data/get_slot_data.py @@ -80,7 +80,6 @@ class Reader(dg.MultiSlotDataGenerator): for j in v: s += " " + k + ":" + str(j) print(s.strip()) - yield None return data_iter diff --git a/models/rank/fm/readme.md b/models/rank/fm/readme.md index e2284faf..80706712 100644 --- a/models/rank/fm/readme.md +++ b/models/rank/fm/readme.md @@ -152,7 +152,6 @@ class Reader(dg.MultiSlotDataGenerator): for j in v: s += " " + k + ":" + str(j) print(s.strip()) - yield None return data_iter reader = Reader( "../config.yaml") # run this file in original folder to find config.yaml -- GitLab