Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File wide scope [Enhancement] #86

Open
corynezin opened this issue Aug 26, 2020 · 0 comments
Open

File wide scope [Enhancement] #86

corynezin opened this issue Aug 26, 2020 · 0 comments

Comments

@corynezin
Copy link

corynezin commented Aug 26, 2020

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

@corynezin corynezin changed the title File wide scope File wide scope [Enhancement] Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant