From 1b561da1f704ecba31cc217b7953a27cb56d9e0c Mon Sep 17 00:00:00 2001 From: Huihuang Zheng Date: Tue, 25 Feb 2020 17:22:10 +0800 Subject: [PATCH] Change API doc example code to python3 style print (#22735) As the title --- python/paddle/fluid/layers/control_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/control_flow.py b/python/paddle/fluid/layers/control_flow.py index 4385e64583..140219c28f 100755 --- a/python/paddle/fluid/layers/control_flow.py +++ b/python/paddle/fluid/layers/control_flow.py @@ -2400,7 +2400,7 @@ class IfElse(object): exe.run(fluid.default_startup_program()) 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)] Args: -- GitLab