代码示例:
@hydra.main(config_path="./configs", config_name='example_01.yaml')
def main(hparams):
# ...
# What is the actual path of the `overrides.yaml` file ???
fn = ''
tracker.log_artifact(fn)
我试过了
def main(hparams):
# ...
p = Path(os.getcwd())
print(p, p.exists())
print([fn for fn in p.glob('**/*')])
p = Path.cwd() / '.hydra/overrides.yaml'
print(p.exists())
输出:
./outputs/2020-07-29/19-35-52 真
[ ]
假
但是脚本完成后,我看到文件存在于./outputs/[date]/[time]/.hydra目录下:
config.yaml
hydra.yaml
覆盖.yaml
版本:
python:3.6.9
hydra-core:1.0.0rc1