From 8cbea0ae0796a18d36416fd0b22bf2bbec76e8eb Mon Sep 17 00:00:00 2001 From: Dang Qingqing Date: Sun, 3 Feb 2019 14:10:56 +0800 Subject: [PATCH] Fix batch_norm API for data_layout. test=release/1.3 test=develop --- python/paddle/fluid/layers/nn.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 0e4b5aadc0b..46ce58fd2db 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -2930,6 +2930,7 @@ def batch_norm(input, "momentum": momentum, "epsilon": epsilon, "is_test": is_test, + "data_layout": data_layout, "use_mkldnn": False, "fuse_with_relu": fuse_with_relu, "use_global_stats": use_global_stats -- GitLab