提交 f4f0f2da 编写于 作者: D dangqingqing

Fix bug in config_parse.py when batch_norm layer is used in RecurrentLayerGroup.

上级 2965df51
...@@ -498,9 +498,12 @@ class Input(Cfg): ...@@ -498,9 +498,12 @@ class Input(Cfg):
is_static=None, is_static=None,
is_shared=None, is_shared=None,
update_hooks=None, update_hooks=None,
input_layer_argument=None, ): input_layer_argument=None,
not_make_layer_name_in_submodel=None, ):
self.add_keys(locals()) self.add_keys(locals())
self.input_layer_name = MakeLayerNameInSubmodel(input_layer_name) self.input_layer_name = MakeLayerNameInSubmodel(input_layer_name)
if not_make_layer_name_in_submodel:
self.input_layer_name = input_layer_name
# Define a projection for iexed layer # Define a projection for iexed layer
...@@ -1848,7 +1851,8 @@ class BatchNormLayer(LayerBase): ...@@ -1848,7 +1851,8 @@ class BatchNormLayer(LayerBase):
initial_std=0.0, initial_std=0.0,
initial_mean=0.0, initial_mean=0.0,
is_static=True, is_static=True,
is_shared=is_shared, )) is_shared=is_shared,
not_make_layer_name_in_submodel=True, ))
parallel_nn = bool(int(g_command_config_args.get("parallel_nn", 0))) parallel_nn = bool(int(g_command_config_args.get("parallel_nn", 0)))
cudnn_version = int(g_command_config_args.get("cudnn_version", 0)) cudnn_version = int(g_command_config_args.get("cudnn_version", 0))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册