提交 c7605265 编写于 作者: W Wang,Jeff

Update documentation style

上级 85d1be4b
...@@ -73,7 +73,7 @@ def main(): ...@@ -73,7 +73,7 @@ def main():
test_reader = paddle.batch(paddle.dataset.mnist.test(), batch_size=64) test_reader = paddle.batch(paddle.dataset.mnist.test(), batch_size=64)
use_cuda = False # set to True if training with GPU use_cuda = False # set to True if training with GPU
place = fluid.CUDAPlace(0) if use_cuda else fluid.CPUPlace() place = fluid.CUDAPlace(0) if use_cuda else fluid.CPUPlace()
trainer = fluid.Trainer( trainer = fluid.Trainer(
......
...@@ -26,8 +26,7 @@ HIDDEN_SIZE = 256 ...@@ -26,8 +26,7 @@ HIDDEN_SIZE = 256
N = 5 N = 5
BATCH_SIZE = 100 BATCH_SIZE = 100
use_cuda = False # set to True if training with GPU
use_cuda = False # set to True if training with GPU
word_dict = paddle.dataset.imikolov.build_dict() word_dict = paddle.dataset.imikolov.build_dict()
dict_size = len(word_dict) dict_size = len(word_dict)
......
...@@ -162,5 +162,5 @@ def main(use_cuda): ...@@ -162,5 +162,5 @@ def main(use_cuda):
if __name__ == '__main__': if __name__ == '__main__':
use_cuda = False # set to True if training with GPU use_cuda = False # set to True if training with GPU
main(use_cuda) main(use_cuda)
...@@ -179,5 +179,5 @@ def main(use_cuda): ...@@ -179,5 +179,5 @@ def main(use_cuda):
if __name__ == '__main__': if __name__ == '__main__':
use_cuda = False # set to True if training with GPU use_cuda = False # set to True if training with GPU
main(use_cuda) main(use_cuda)
...@@ -170,5 +170,5 @@ def main(use_cuda): ...@@ -170,5 +170,5 @@ def main(use_cuda):
if __name__ == '__main__': if __name__ == '__main__':
use_cuda = False # set to True if training with GPU use_cuda = False # set to True if training with GPU
main(use_cuda) main(use_cuda)
...@@ -128,5 +128,5 @@ def main(use_cuda): ...@@ -128,5 +128,5 @@ def main(use_cuda):
if __name__ == '__main__': if __name__ == '__main__':
use_cuda = False # set to True if training with GPU use_cuda = False # set to True if training with GPU
main(use_cuda) main(use_cuda)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册