提交 8a317fa2 编写于 作者: Y yinhaofeng

remove yield

上级 f145df7b
...@@ -80,7 +80,6 @@ class Reader(dg.MultiSlotDataGenerator): ...@@ -80,7 +80,6 @@ class Reader(dg.MultiSlotDataGenerator):
for j in v: for j in v:
s += " " + k + ":" + str(j) s += " " + k + ":" + str(j)
print(s.strip()) print(s.strip())
yield None
return data_iter return data_iter
......
...@@ -152,7 +152,6 @@ class Reader(dg.MultiSlotDataGenerator): ...@@ -152,7 +152,6 @@ class Reader(dg.MultiSlotDataGenerator):
for j in v: for j in v:
s += " " + k + ":" + str(j) s += " " + k + ":" + str(j)
print(s.strip()) print(s.strip())
yield None
return data_iter return data_iter
reader = Reader( reader = Reader(
"../config.yaml") # run this file in original folder to find config.yaml "../config.yaml") # run this file in original folder to find config.yaml
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册