google / google/gin-config

File wide scope [Enhancement]

Open
#86 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.2k
Forks
122
Avg merge
5d 10h
Merged PRs (30d)
2

Description

Any thoughts on the possibility of adding a file-wide scope to a gin config? I am thinking about the case where one may want to instantiate many instances of the same model with different parameters each time. I could through every file and prepend `model_001/` then `model_002/`, etc. everywhere but I feel there could be a better way. Or maybe add the option to parse with a given scope, e.g. `gin.parse_config_file('config.gin', scope='model_001')`. Or extend the `include` syntax as follows: `include 'path/to/another/file.gin' with scope model_001`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.