提交 3fbe9c34 编写于 作者: W wanglun 提交者: Abhinav Arora

Fix typo in docstring (#9829)

上级 18665979
...@@ -50,7 +50,7 @@ An example implementation for single item data reader creator: ...@@ -50,7 +50,7 @@ An example implementation for single item data reader creator:
def reader(): def reader():
while True: while True:
yield numpy.random.uniform(-1, 1, size=width*height) yield numpy.random.uniform(-1, 1, size=width*height)
return reader return reader
An example implementation for multiple item data reader creator: An example implementation for multiple item data reader creator:
...@@ -60,7 +60,7 @@ An example implementation for multiple item data reader creator: ...@@ -60,7 +60,7 @@ An example implementation for multiple item data reader creator:
def reader(): def reader():
while True: while True:
yield numpy.random.uniform(-1, 1, size=width*height), label yield numpy.random.uniform(-1, 1, size=width*height), label
return reader return reader
TODO(yuyang18): Should we add whole design doc here? TODO(yuyang18): Should we add whole design doc here?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册