提交 9a577f2e 编写于 作者: Y Youwei Song 提交者: Aurelius84

fix batchnorm api param: data_layout (#19524)

* fix batchnorm api param: data_layout

* fix batchnorm data_layout param; test=develop
上级 7a867063
......@@ -1133,6 +1133,7 @@ class BatchNorm(layers.Layer):
self._variance.stop_gradient = True
self._in_place = in_place
self._data_layout = data_layout
self._momentum = momentum
self._epsilon = epsilon
self._is_test = is_test
......@@ -1177,6 +1178,7 @@ class BatchNorm(layers.Layer):
"momentum": self._momentum,
"epsilon": self._epsilon,
"is_test": self._is_test,
"data_layout": self._data_layout,
"use_mkldnn": False,
"fuse_with_relu": self._fuse_with_relu,
"use_global_stats": self._use_global_stats,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册