Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

fb-hydra: How to make inner configurations inherit outer configuration fields PARTLY?

$
0
0

I have 2 configs like, and I want to make inner config PARTLY inherit outer config. Thank you for your help!

this is the outer config:

# config.yamldefaults:  - _self_  - model: pctlr: 1e-3 num_epoch: 200weight_decay: 5e-4scheduler_stepsize: 50batch_size: 16

this is the inner config:

# model/pct.yamlfile_name: pctlr: 1e-4

And I want to override the outer config PARTLY, such as inherit 'lr':

# my expect output configlr: 1e-4model:  file_name: pct...

I know there is '@here' keyword to make inner config be global, but I do not know how to make inner config PARTLY be global.


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>