espnet3.utils.config_utils.self_name
espnet3.utils.config_utils.self_name
espnet3.utils.config_utils.self_name(path)
Return the current config stem for ${self_name:} interpolation.
This resolver supports config values such as exp_tag: ${self_name:}. During config loading, load_config_with_defaults() rewrites that interpolation to the stem of the YAML file currently being processed.
The resolver itself is intentionally a passthrough because OmegaConf only passes explicit resolver arguments to callbacks. The actual config-name injection happens earlier in _normalize_relative_resolver_paths(), which replaces ${self_name:} with the plain config stem before resolution.
- Parameters:path (str) – Config stem passed explicitly to the resolver, such as training or inference.
- Returns: The injected config stem unchanged.
- Return type: str
Notes
This resolver is intended for ESPnet config composition. It is primarily consumed from YAML rather than called directly from Python.
Examples
In a config file named `training.yaml`.
exp_tag: $
The expression is rewritten during loading to.
training
