提交 e4c492d3 编写于 作者: D dangqingqing

change type to bool.

上级 a6f772be
...@@ -499,11 +499,15 @@ class Input(Cfg): ...@@ -499,11 +499,15 @@ class Input(Cfg):
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, ): make_layer_name_in_submodel=True, ):
"""
@param make_layer_name_in_submodel True by defalut, you might need to
set it carefully when adding Input in config_parser.py.
"""
self.add_keys(locals()) self.add_keys(locals())
self.input_layer_name = MakeLayerNameInSubmodel(input_layer_name) self.input_layer_name = MakeLayerNameInSubmodel(
if not_make_layer_name_in_submodel: input_layer_name
self.input_layer_name = input_layer_name ) if make_layer_name_in_submodel else input_layer_name
# Define a projection for iexed layer # Define a projection for iexed layer
...@@ -1852,7 +1856,7 @@ class BatchNormLayer(LayerBase): ...@@ -1852,7 +1856,7 @@ class BatchNormLayer(LayerBase):
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, )) make_layer_name_in_submodel=False, ))
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.
先完成此消息的编辑!
想要评论请 注册