Hydra ListConfig objects are not dynamically interploated.
RafayAK opened this issue Β· comments
RafayAK commented
Hi, there is a small bug/oversight when using Hydra's dynamically interploated configurations. This issue is particularly in regards to the tags
list in the experiment.yaml
, for example.
tags:
- "mnist"
- "simple_dense_net"
- ${task_name} # should be dynamically interpolated
- batch_size_${data.batch_size} # should also be dynamically interpolated
seed: 12345
trainer:
min_epochs: 10
max_epochs: 10
gradient_clip_val: 0.5
...
...
logger:
wandb:
tags: ${tags}
group: "mnist"
aim:
experiment: "mnist"
The tags
list gets correctly resolved when Wandb configs are resolved but the tags them selves are not dynamically resolved when the config tree is printed:
CONFIG
βββ data
β βββ _target_: src.data.mnist_datamodule.MNISTDataModule
| ....
β
βββ model
β βββ _target_: src.models.mnist_module.MNISTLitModule
β ...
β
βββ callbacks
β βββ ...
β
βββ logger
β βββ wandb:
β tags:
β - mnist
β - simple_dense_net
β - train # RESOLVED
β - batch_size_64 # RESOLVED
β group: mnist
β aim:
β experiment: mnist
β
...
...
βββ task_name
β βββ train
βββ tags
β βββ ['mnist', 'simple_dense_net', '${task_name}', 'batch_size_${data.batch_size}'] # UNRESOLVED