Skip to content

Commit

Permalink
fix black 88 chars
Browse files Browse the repository at this point in the history
But maybe we should change it? #118
  • Loading branch information
albertz committed Feb 18, 2023
1 parent 0af64cb commit a3dbbea
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions common/setups/returnn/serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ def get_serializable_config(config: ReturnnConfig) -> ReturnnConfig:
config = deepcopy(config)
dim_tag_proxy = ReturnnDimTagsProxy()
config.config = dim_tag_proxy.collect_dim_tags_and_transform_config(config.config)
config.post_config = dim_tag_proxy.collect_dim_tags_and_transform_config(config.post_config)
config.staged_network_dict = dim_tag_proxy.collect_dim_tags_and_transform_config(config.staged_network_dict)
config.post_config = dim_tag_proxy.collect_dim_tags_and_transform_config(
config.post_config
)
config.staged_network_dict = dim_tag_proxy.collect_dim_tags_and_transform_config(
config.staged_network_dict
)

if not dim_tag_proxy.dim_refs_by_name:
# No dim tags found, just return as-is.
Expand All @@ -37,7 +41,9 @@ def get_serializable_config(config: ReturnnConfig) -> ReturnnConfig:
if config.python_epilog and code not in config.python_epilog:
python_epilog_ext.append(code)
config_update = ReturnnConfig(
{}, python_epilog=python_epilog_ext, hash_full_python_code=config.hash_full_python_code
{},
python_epilog=python_epilog_ext,
hash_full_python_code=config.hash_full_python_code,
)
config.update(config_update)

Expand Down

0 comments on commit a3dbbea

Please sign in to comment.