@hydra.mainデコレーターの下の関数から構成オブジェクトを辞書として取得するオプションはありますか?
私はこのようなことを試しましたが、Noneを返します
@hydra.main(config_path="conf", config_name="config")
def my_app(cfg) -> dict:
print(cfg) # --> work, the cfg object exists inside the function scope
return cfg
a = my_app()
print(a)
Compose APIを使用できることはわかっていますが、機能が制限されているため (タブ補完、マルチランなど)、使用したくありません。