initializer_resolver

savant.config.initializer_resolver(param_name, default_val, _parent_, _root_)

OmegaConf resolver that provides config variable value by polling a number of different value stores in order of their priority and returning result from the first available one.

Example usage in config (higher number means lower priority):

parameter_init_priority:
    environment: 20
    etcd: 10

parameters:
    frame:
        width: ${initializer:frame_width,1280}

where

  • initializer is the registered resolver name

  • frame_width is the example variable name

  • 1280 is the default value, used in case all value stores failed to return a result