From 01d9bf9264e3b906244aea2a1055a65449ff21a8 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=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 0e4b5aadc..46ce58fd2 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