Skip to content

Commit 68b6192

Browse files
authored
Merge pull request #13108 from hshen14/develop
Enable conv and batch norm by default
2 parents d117bbc + 314e150 commit 68b6192

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/paddle/fluid/transpiler/inference_transpiler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,10 @@ def transpile(self, program, place, scope=None):
6060
if not isinstance(scope, core.Scope):
6161
raise TypeError("scope should be as Scope type or None")
6262
use_mkldnn = bool(os.getenv("FLAGS_use_mkldnn", False))
63+
self._fuse_batch_norm(program, place, scope)
6364
if use_mkldnn:
6465
self._fuse_relu_mkldnn(program)
6566
self._fuse_conv_bias_mkldnn(program)
66-
else:
67-
self._fuse_batch_norm(program, place, scope)
6867

6968
def _fuse_relu_mkldnn(self, program):
7069
'''

0 commit comments

Comments
 (0)