未验证 提交 1b561da1 编写于 作者: H Huihuang Zheng 提交者: GitHub

Change API doc example code to python3 style print (#22735)

As the title
上级 882e7f7c
...@@ -2400,7 +2400,7 @@ class IfElse(object): ...@@ -2400,7 +2400,7 @@ class IfElse(object):
exe.run(fluid.default_startup_program()) exe.run(fluid.default_startup_program())
res = exe.run(fluid.default_main_program(), feed={"x":x_d, "y":y_d}, fetch_list=[out]) res = exe.run(fluid.default_main_program(), feed={"x":x_d, "y":y_d}, fetch_list=[out])
print res print(res)
# [array([-1.], dtype=float32)] # [array([-1.], dtype=float32)]
Args: Args:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册